tidy cloudbot3/refresh code!

This commit is contained in:
Luke Rogers 2014-03-06 14:15:04 +13:00
parent f81cf21b57
commit 99e363cc99
12 changed files with 66 additions and 53 deletions

View file

@ -1,15 +1,18 @@
""" web.py - handy functions for web services """
import json
import urllib.request
import urllib.parse
import urllib.error
from . import http
from . import urlnorm
import json
import urllib.request, urllib.parse, urllib.error
short_url = "http://is.gd/create.php"
paste_url = "http://hastebin.com"
class ShortenError(Exception):
def __init__(self, code, text):
self.code = code