Manual 2to3 fixups.
[cumulus.git] / python / cumulus / metadata.py
index c133b39..af668c1 100644 (file)
@@ -23,6 +23,8 @@ underlying metadata log have been generated by a depth-first-search traversal
 of the filesystem, in sorted order.
 """
 
+from __future__ import division, print_function, unicode_literals
+
 import cumulus
 
 class Metadata:
@@ -45,7 +47,7 @@ class Metadata:
         lines = self._load(ref)[n:]
 
         try:
-            return cumulus.parse(lines, lambda l: len(l) == 0).next()
+            return next(cumulus.parse(lines, lambda l: len(l) == 0))
         except StopIteration:
             return {}
 
@@ -195,6 +197,6 @@ if __name__ == '__main__':
 
     metadata = Metadata(store, root)
     ptr = metadata.search(['home', 'mvrable', 'docs'])
-    print ptr
-    print metadata._read(ptr)
+    print(ptr)
+    print(metadata._read(ptr))
     store.cleanup()