Skip to content
Snippets Groups Projects
Commit 99e786d1 authored by eug48's avatar eug48
Browse files

Removed unused 'Request' class

parent 773adf9b
No related merge requests found
...@@ -9,18 +9,6 @@ import errors ...@@ -9,18 +9,6 @@ import errors
from client import __ver__ from client import __ver__
class Request(urllib2.Request):
def __init__(self, url, data=None, headers={},
origin_req_host=None, unverifiable=False, head = False):
urllib2.Request.__init__(self, url, data, headers, origin_req_host, unverifiable)
self.add_header('User-Agent', 'MwClient-' + __ver__)
self.head = head
def get_method(self):
if self.head: return 'HEAD'
return urllib2.Request.get_method(self)
class CookieJar(dict): class CookieJar(dict):
def __init__(self): def __init__(self):
dict.__init__(self, ()) dict.__init__(self, ())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment