# 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$"),
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())
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