X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Fstore%2F__init__.py;h=e368c57257d26448608f262b95ec2100ac136798;hp=7488b2f2ed3e31cdd10ada38592b492399e41ffb;hb=a5f66616b1ec0c38328ad5131bf1c889ccc43659;hpb=5b69b1ec0eeba473dfd2c40de41075a49a147e93 diff --git a/python/cumulus/store/__init__.py b/python/cumulus/store/__init__.py index 7488b2f..e368c57 100644 --- a/python/cumulus/store/__init__.py +++ b/python/cumulus/store/__init__.py @@ -16,7 +16,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -import exceptions, re, urlparse +import exceptions, re, urllib.parse type_patterns = { 'checksums': re.compile(r"^snapshot-(.*)\.(\w+)sums$"), @@ -39,7 +39,7 @@ class Store (object): if cls != Store: return super(Store, cls).__new__(cls, url, **kw) (scheme, netloc, path, params, query, fragment) \ - = urlparse.urlparse(url) + = urllib.parse.urlparse(url) try: cumulus = __import__('cumulus.store.%s' % scheme, globals()) @@ -53,7 +53,7 @@ class Store (object): obj.fragment = fragment return obj except ImportError: - raise NotImplementedError, "Scheme %s not implemented" % scheme + raise NotImplementedError("Scheme %s not implemented" % scheme) def list(self, path): raise NotImplementedError