Skip to content

Commit

Permalink
urlparse changed to urllib.parse in python3 bzed#3
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Daftary committed Jul 18, 2016
1 parent 0e15b80 commit e7e0260
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions godebian/manage.py
Expand Up @@ -32,9 +32,13 @@
from .cache import memcache
from .config import UrlencoderConfig
from . import db

import sys
import re
import urlparse

if (sys.version_info > (3, 0)):
import urllib.parse as urlparse
else:
import urlparse

# regex to validate key string
_key_validator_re = re.compile(r'^([' + UrlencoderConfig.alphabet + ']+)$')
Expand Down

0 comments on commit e7e0260

Please sign in to comment.