~leonardr/launchpadlib/use-1.0

« back to all changes in this revision

Viewing changes to src/launchpadlib/uris.py

  • Committer: Leonard Richardson
  • Date: 2009-10-27 16:29:16 UTC
  • mfrom: (66.1.4 json-token-format)
  • Revision ID: leonard.richardson@canonical.com-20091027162916-j2neti3rj7yuzza5
[r=bac] Added a command-line script for creating a request token.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        return aliases[root]
66
66
 
67
67
    # It's not an alias. Is it a valid URL?
68
 
    parsed = urlparse(root)
69
 
    if parsed.scheme != "" and parsed.netloc != "":
 
68
    (scheme, netloc, path, parameters, query, fragment) = urlparse(root)
 
69
    if scheme != "" and netloc != "":
70
70
        return root
71
71
 
72
72
    # It's not an alias or a valid URL.