diff options
author | 2015-04-19 18:03:46 +0200 | |
---|---|---|
committer | 2015-04-19 18:03:46 +0200 | |
commit | e1c22fad3fffb485da400e4b34c094f201a2c72e (patch) | |
tree | d360610cdf65e2f1906d3cc9c891f6b80066859d /pyload/network/HTTPRequest.py | |
parent | PEP-8, Python Zen, refactor and reduce code (part 7 in master module/database) (diff) | |
download | pyload-e1c22fad3fffb485da400e4b34c094f201a2c72e.tar.xz |
range -> xrange
Diffstat (limited to 'pyload/network/HTTPRequest.py')
-rw-r--r-- | pyload/network/HTTPRequest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/network/HTTPRequest.py b/pyload/network/HTTPRequest.py index 62c0ef72b..d87a3ee7e 100644 --- a/pyload/network/HTTPRequest.py +++ b/pyload/network/HTTPRequest.py @@ -24,7 +24,7 @@ def myurlencode(data): data = dict(data) return urlencode(dict((encode(x), encode(y)) for x, y in data.iteritems())) -bad_headers = range(400, 404) + range(405, 418) + range(500, 506) +bad_headers = xrange(400, 404) + xrange(405, 418) + xrange(500, 506) class BadHeader(Exception): |