remote-helpers: avoid has_key
It is deprecated. [fc: do the same in remote-bzr] Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
118f60ee06
commit
3473ecd7ff
@ -94,7 +94,7 @@ class Marks:
|
||||
return self.last_mark
|
||||
|
||||
def is_marked(self, rev):
|
||||
return self.marks.has_key(rev)
|
||||
return str(rev) in self.marks
|
||||
|
||||
def new_mark(self, rev, mark):
|
||||
self.marks[rev] = mark
|
||||
|
@ -129,7 +129,7 @@ class Marks:
|
||||
self.last_mark = mark
|
||||
|
||||
def is_marked(self, rev):
|
||||
return self.marks.has_key(str(rev))
|
||||
return str(rev) in self.marks
|
||||
|
||||
def get_tip(self, branch):
|
||||
return self.tips.get(branch, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user