storage: convert to Python 3 compatibility
authorW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 17:18:43 +0000 (12:18 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 17:18:43 +0000 (12:18 -0500)
libbe/storage/__init__.py

index 991859a42d87066c832d20bda795f2903057d672..ccadb9c24f8ed8be5f81c09b59b01b7e5bc5d70e 100644 (file)
@@ -30,16 +30,16 @@ Also define an assortment of storage-related tools and utilities:
 * :py:mod:`libbe.storage.util`
 """
 
-import base
+from . import base as _base
 
-ConnectionError = base.ConnectionError
-InvalidStorageVersion = base.InvalidStorageVersion
-InvalidID = base.InvalidID
-InvalidRevision = base.InvalidRevision
-InvalidDirectory = base.InvalidDirectory
-NotWriteable = base.NotWriteable
-NotReadable = base.NotReadable
-EmptyCommit = base.EmptyCommit
+ConnectionError = _base.ConnectionError
+InvalidStorageVersion = _base.InvalidStorageVersion
+InvalidID = _base.InvalidID
+InvalidRevision = _base.InvalidRevision
+InvalidDirectory = _base.InvalidDirectory
+NotWriteable = _base.NotWriteable
+NotReadable = _base.NotReadable
+EmptyCommit = _base.EmptyCommit
 
 # a list of all past versions
 STORAGE_VERSIONS = ['Bugs Everywhere Tree 1 0',