On the 'ctypes-python-bindings' branch: Python 3 compatibility: Don't use 'has_key'. * csvn/txn.py (Txn._check_path, _txn_operation.open): Use 'in' instead of 'has_key'. git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/ctypes-python-bindings@873405 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/csvn/txn.py b/csvn/txn.py index 4335dbe..3d938a2 100644 --- a/csvn/txn.py +++ b/csvn/txn.py
@@ -301,7 +301,7 @@ if copyfrom_path: copyfrom_path = "%s/%s" % (copyfrom_path, path_component) - if parent.ops.has_key(path): + if path in parent.ops: node = parent.open(path) if node.action == "DELETE": kind = svn_node_none @@ -337,7 +337,7 @@ def open(self, path, action="OPEN", kind=svn_node_dir, copyfrom_path = None, copyfrom_rev = -1, local_path = None): - if self.ops.has_key(path): + if path in self.ops: op = self.ops[path] if action == "OPEN" and op.kind in (svn_node_dir, svn_node_file): return op