projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Manual 2to3 fixups.
[cumulus.git]
/
python
/
cumulus
/
metadata.py
diff --git
a/python/cumulus/metadata.py
b/python/cumulus/metadata.py
index
c133b39
..
af668c1
100644
(file)
--- a/
python/cumulus/metadata.py
+++ b/
python/cumulus/metadata.py
@@
-23,6
+23,8
@@
underlying metadata log have been generated by a depth-first-search traversal
of the filesystem, in sorted order.
"""
of the filesystem, in sorted order.
"""
+from __future__ import division, print_function, unicode_literals
+
import cumulus
class Metadata:
import cumulus
class Metadata:
@@
-45,7
+47,7
@@
class Metadata:
lines = self._load(ref)[n:]
try:
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 {}
except StopIteration:
return {}
@@
-195,6
+197,6
@@
if __name__ == '__main__':
metadata = Metadata(store, root)
ptr = metadata.search(['home', 'mvrable', 'docs'])
metadata = Metadata(store, root)
ptr = metadata.search(['home', 'mvrable', 'docs'])
- print
ptr
- print
metadata._read(ptr
)
+ print
(ptr)
+ print
(metadata._read(ptr)
)
store.cleanup()
store.cleanup()