Skip to content

Commit fe56c56

Browse files
1.6.2alt
1 parent 5864b86 commit fe56c56

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

robots/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
import sre_parse
33
from sre_constants import LITERAL, AT, AT_BEGINNING, AT_END
44

5-
from urllib.parse import quote, unquote
5+
try:
6+
# Python 3
7+
from urllib.parse import quote, unquote
8+
except ImportError:
9+
# Python 2
10+
from urllib import quote, unquote
611

712
from django.conf.urls import url
813
from django.core.urlresolvers import get_urlconf, get_resolver, RegexURLResolver

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='django-robots',
9-
version='1.6.1alt',
9+
version='1.6.2alt',
1010
description='Django robots.txt generator',
1111
long_description=long_description,
1212
url='https://github.com/valeriansaliou/django-robots',

0 commit comments

Comments
 (0)