Skip to content
Myr

Fix a few warnings flagged by PyDev

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- Unused import of urlparse - Unnecessary definition of variable - Incorrect indentation

authored by David Pursehouse · committed by David Pursehouse · parent e5597df · Browse files · 2 files+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−3 removed

  • other:+2 added−3 removed

2 files+2 added−3 removed

modified:requests/models.py+1 added-2 removed
23 unmodified lines
24 guess_filename, get_auth_from_url, requote_uri,25 stream_decode_response_unicode, to_key_val_list, parse_header_links,26 iter_slices, guess_json_utf, super_len)27from .compat import (28 cookielib, urlparse, urlunparse, urlsplit, urlencode, str, bytes, StringIO,28 cookielib, urlunparse, urlsplit, urlencode, str, bytes, StringIO,29 is_py2, chardet, json, builtin_str, basestring)3031CONTENT_CHUNK_SIZE = 10 * 102432ITER_CHUNK_SIZE = 512
318 unmodified lines
351 # Nottin' on you.352 body = None353 content_type = None354 length = None355 is_stream = False355356 is_stream = all([357 hasattr(data, '__iter__'),358 not isinstance(data, basestring),
334 unmodified lines
modified:requests/structures.py+1 added-1 removed
101 unmodified lines
102 return dict(self.lower_items()) == dict(other.lower_items())103104 # Copy is required105 def copy(self):106 return CaseInsensitiveDict(self._store.values())106 return CaseInsensitiveDict(self._store.values())107108 def __repr__(self):109 return '%s(%r)' % (self.__class__.__name__, dict(self.items()))110
18 unmodified lines