Permalink
Browse files

Replaced has_key with in for Python 3.0 compatibility

  • Loading branch information...
1 parent a07cbf4 commit bbd0f5039acb14b8d6b61be8ca4c856c20afc90a @charleso committed Apr 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 cache.py
View
2 cache.py
@@ -37,7 +37,7 @@ def update(self, path):
self.map[path.file] = path.version
return isChild or path.version.endswith(cfg.getBranches()[0])
def remove(self, file):
- if self.map.has_key(file):
+ if file in self.map:
del self.map[file]
def write(self):
lines = []

0 comments on commit bbd0f50

Please sign in to comment.