projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run 2to3 over Python sources.
[cumulus.git]
/
python
/
cumulus
/
metadata.py
diff --git
a/python/cumulus/metadata.py
b/python/cumulus/metadata.py
index
c133b39
..
ac92ec4
100644
(file)
--- a/
python/cumulus/metadata.py
+++ b/
python/cumulus/metadata.py
@@
-45,7
+45,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
+195,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()