X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=python%2Fcumulus%2Fmetadata.py;h=ac92ec4a38dc2802aea11dd573aa0f1a60882deb;hb=a5f66616b1ec0c38328ad5131bf1c889ccc43659;hp=c133b39e92f208b232cde05b7acd75b0c2f9bb58;hpb=64bff41cb3ccdd60e767a5bb9ed8525d2dda1966;p=cumulus.git 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()