Skip to content

Commit

Permalink
Fixed a Python 2.5ism.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobian committed Apr 13, 2009
1 parent 45a02f1 commit f206156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,6 +3,7 @@
.installed.cfg
bin
develop-eggs
dist
downloads
eggs
parts
Expand Down
2 changes: 1 addition & 1 deletion src/shorturls/views.py
Expand Up @@ -34,7 +34,7 @@ def redirect(request, prefix, tiny):
# actually returns a domain-relative URL -- into a fully qualified one.

# If we got a fully-qualified URL, sweet.
if urlparse.urlsplit(url).scheme:
if urlparse.urlsplit(url)[0]:
return HttpResponsePermanentRedirect(url)

# Otherwise, we need to make a full URL by prepending a base URL.
Expand Down

0 comments on commit f206156

Please sign in to comment.