diff options
author | 2015-02-13 00:05:13 -0500 | |
---|---|---|
committer | 2015-02-13 11:12:44 -0500 | |
commit | 3b128d6d8419d8d161402830c2d0e2f91116d442 (patch) | |
tree | 4718ed239aa587b945ae4cea714f2c8d0e3e3286 | |
parent | binpkg: drop duplicate cache keys (diff) | |
download | pkgcore-3b128d6d8419d8d161402830c2d0e2f91116d442.tar.gz pkgcore-3b128d6d8419d8d161402830c2d0e2f91116d442.tar.bz2 pkgcore-3b128d6d8419d8d161402830c2d0e2f91116d442.zip |
lint: whitespace and module namespace consistency
-rw-r--r-- | pkgcore/binpkg/remote.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgcore/binpkg/remote.py b/pkgcore/binpkg/remote.py index 739bb982b..db0f53162 100644 --- a/pkgcore/binpkg/remote.py +++ b/pkgcore/binpkg/remote.py @@ -26,7 +26,7 @@ demandload( 'snakeoil.chksum:get_chksums', 'snakeoil.containers:RefCountingSet', 'snakeoil.fileutils:AtomicWriteFile,readlines', - 'pkgcore:log', + 'pkgcore.log:logger', 'pkgcore.restrictions.packages:AlwaysTrue', ) @@ -193,7 +193,7 @@ class PackagesCacheV0(cache.bulk): d[cls._serialize_map.get(key, key)] = value for key, value in izip(cls._stored_chfs, - get_chksums(pkg.path, *cls._stored_chfs)): + get_chksums(pkg.path, *cls._stored_chfs)): if key != 'size': value = "%x" % (value,) d[key.upper()] = value @@ -210,8 +210,9 @@ class PackagesCacheV0(cache.bulk): except EnvironmentError as e: if e.errno != errno.EACCES: raise - log.logger.error("failed writing binpkg Packages cache to %r; permissions issue %s", - self._location, e) + logger.error( + "failed writing binpkg Packages cache to %r; permissions issue %s", + self._location, e) finally: if handler is not None: handler.discard() |