summaryrefslogtreecommitdiff
path: root/tests/oauth2/rfc6749/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/oauth2/rfc6749/test_utils.py')
-rw-r--r--tests/oauth2/rfc6749/test_utils.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/oauth2/rfc6749/test_utils.py b/tests/oauth2/rfc6749/test_utils.py
index 609162c..cfc6c2c 100644
--- a/tests/oauth2/rfc6749/test_utils.py
+++ b/tests/oauth2/rfc6749/test_utils.py
@@ -1,9 +1,6 @@
-from __future__ import absolute_import, unicode_literals
-
import datetime
import os
-from oauthlib.common import PY3
from oauthlib.oauth2.rfc6749.utils import (escape, generate_age, host_from_uri,
is_secure_transport, list_to_scope,
params_from_uri, scope_to_list)
@@ -19,12 +16,8 @@ class ScopeObject:
def __init__(self, scope):
self.scope = scope
- if PY3:
- def __str__(self):
- return self.scope
- else:
- def __unicode__(self):
- return self.scope
+ def __str__(self):
+ return self.scope
class UtilsTests(TestCase):