File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717# parse_qsl moved to urlparse module in v2.6
1818try :
19- from urlparse import parse_qsl
19+ from urllib . parse import parse_qsl
2020except :
21- from cgi import parse_qsl
21+ try :
22+ from urlparse import parse_qsl
23+ except :
24+ from cgi import parse_qsl
2225
2326import webbrowser
2427import oauth2 as oauth
Original file line number Diff line number Diff line change 1717'''The setup and build script for the python-twitter library.'''
1818
1919__author__ = 'python-twitter@googlegroups.com'
20- __version__ = '1.1.3 '
20+ __version__ = '1.1.4 '
2121
2222
2323# The base package metadata to be used by both distutils and setuptools
Original file line number Diff line number Diff line change 2727except ImportError :
2828 import email
2929
30+ try :
31+ import urlparse
32+ except ImportError :
33+ import urllib .parse as urlparse
34+
3035import os
3136import urllib
3237import sys
3338import tempfile
3439import textwrap
3540import time
36- import urlparse
3741import gzip
3842import StringIO
3943import re
You can’t perform that action at this time.
0 commit comments