X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Fmetadata.py;h=ac92ec4a38dc2802aea11dd573aa0f1a60882deb;hp=c133b39e92f208b232cde05b7acd75b0c2f9bb58;hb=a5f66616b1ec0c38328ad5131bf1c889ccc43659;hpb=5b69b1ec0eeba473dfd2c40de41075a49a147e93 diff --git a/python/cumulus/metadata.py b/python/cumulus/metadata.py index c133b39..ac92ec4 100644 --- a/python/cumulus/metadata.py +++ b/python/cumulus/metadata.py @@ -45,7 +45,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 +195,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()