Skip to content
Browse files

Remove example.py.

  • Loading branch information...
1 parent 272058f commit d16f5f87981a7f63a53ff59533f755d49a43e1f2 @berkerpeksag committed Aug 9, 2012
Showing with 0 additions and 45 deletions.
  1. +0 −45 example.py
View
45 example.py
@@ -1,45 +0,0 @@
-#!/usr/bin/env python
-# coding: utf-8
-
-from urlparse2 import Url
-
-
-def main():
- url = Url('https://bugzilla.mozilla.org/show_bug.cgi?id=698201#c0')
- print url.scheme, url.host, url.querystring, url.fragment
- # https bugzilla.mozilla.org id=698201 c0
-
- url.scheme = 'http'
- url.host = 'bugzilla.webkit.org'
-
- print url
- print url.url
- print url.scheme
- print url.host
- print url.netloc
- print url.host == url.netloc
- # http://bugzilla.webkit.org/show_bug.cgi?id=698201#c0
- # http://bugzilla.webkit.org/show_bug.cgi?id=698201#c0
- # http
- # bugzilla.webkit.org
- # bugzilla.webkit.org
- # True
-
- url.path = 'list_bugs.cgi'
- print url.path, url.url
- # list_bugs.cgi http://bugzilla.webkit.org/list_bugs.cgi?id=698201#c0
-
- url.fragment = 'c1'
- print url.fragment
- print url.url
- # c1
- # http://bugzilla.webkit.org/list_bugs.cgi?id=698201#c1
-
- url.fragment = ''
- print url.fragment
- print url.url
- # ''
- # http://bugzilla.webkit.org/list_bugs.cgi?id=698201
-
-if __name__ == '__main__':
- main()

0 comments on commit d16f5f8

Please sign in to comment.
Something went wrong with that request. Please try again.