diff options
author | kongr45gpen <electrovesta@gmail.com> | 2017-01-03 23:12:37 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2017-01-03 23:13:15 +0200 |
commit | fb353478e24e5e4341b86fec3a390906e5e8ce74 (patch) | |
tree | 0348d0cbc31a04ac0dae93d5dc7338afdaa3e5dd | |
parent | 5f2c9f63e3c318ee333ddbc4fbc22cfda760f299 (diff) | |
download | supybot_github-fb353478e24e5e4341b86fec3a390906e5e8ce74.tar.gz supybot_github-fb353478e24e5e4341b86fec3a390906e5e8ce74.tar.bz2 supybot_github-fb353478e24e5e4341b86fec3a390906e5e8ce74.zip |
Temporarily disable git.io URL shortening due to unidentified bug
-rw-r--r-- | local/utility.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/local/utility.py b/local/utility.py index 1ae47a0..59dfd91 100644 --- a/local/utility.py +++ b/local/utility.py @@ -113,9 +113,11 @@ def getShortURL(longurl): url = longurl else: data = 'url=%s' % (longurl) - req = urllib2.Request("https://git.io/", data) - response = urllib2.urlopen(req) - url = response.info().getheader('Location') + # Temporarily disabled + url = longurl + #req = urllib2.Request("https://git.io/", data) + #response = urllib2.urlopen(req) + #url = response.info().getheader('Location') return ircutils.mircColor(url, "purple") getShortURL.github = re.compile('^([a-z]*\:\/\/)?([^\/]+.)?github.com') |