Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an `except` statement to be Python3-compatible. Thanks to chare…

…ttes for the tip.
  • Loading branch information...
commit 2b6644388f1a33f0b2eeb1c7a576fc04cfa72e0a 1 parent 4ceb9db
Julien Phalip jphalip authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/urlresolvers.py
2  django/core/urlresolvers.py
View
@@ -165,7 +165,7 @@ def regex(self):
regex = force_unicode(self._regex)
try:
compiled_regex = re.compile(regex, re.UNICODE)
- except re.error, e:
+ except re.error as e:
raise ImproperlyConfigured(
'"%s" is not a valid regular expression: %s' %
(regex, unicode(e)))
Please sign in to comment.
Something went wrong with that request. Please try again.