Skip to content

Commit b2fca15

Browse files
committed
a couple of cleanups suggested by ieure in code review
1 parent 919bfc7 commit b2fca15

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

oauth2/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ class Request(dict):
289289

290290
def __init__(self, method=HTTP_METHOD, url=None, parameters=None):
291291
if url is not None:
292-
url = to_unicode(url)
293-
self.url = unicode(url)
292+
self.url = to_unicode(url)
294293
self.method = method
295294
if parameters is not None:
296295
self.update(parameters)

tests/test_oauth.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ def test_from_string(self):
249249
self._compare_tokens(new)
250250

251251
class TestRequest(unittest.TestCase):
252-
# def test_split(self):
253-
# r = 253G
254252
def test_setter(self):
255253
url = "http://example.com"
256254
method = "GET"

0 commit comments

Comments
 (0)