I got my scripts that use py2neo working with py2neo-1.4.6 and python 3.3.0.
sudo 2to3 -w neometry.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored neometry.py
--- neometry.py (original)
+++ neometry.py (refactored)
@@ -22,7 +22,7 @@
"""
-from util import round_robin
+from .util import round_robin
class Path(object):
@@ -48,7 +48,7 @@
out.append(str(self._nodes[-1]))
return "".join(out)
- def __nonzero__(self):
+ def __bool__(self):
return bool(self._edges)
def __len__(self):
RefactoringTool: Files that were modified:
RefactoringTool: neometry.py