summaryrefslogtreecommitdiff
path: root/oauthlib/oauth1/rfc5849/__init__.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-09-14 05:07:46 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-09-14 05:18:10 -0700
commit8aa89569f14b493ba2672d7a64c7c1c138c82c3b (patch)
treeb8e9b177925b36e57ed1f24bfc2f2bc203cc1e1b /oauthlib/oauth1/rfc5849/__init__.py
parenta49c773fe4a7e0912a19057cb783e3a71b46435c (diff)
downloadoauthlib-8aa89569f14b493ba2672d7a64c7c1c138c82c3b.tar.gz
Remove unnecessary workaround for bytes type
The type 'bytes' is available on all supported Pythons. Likewise the byte literal b'...' is available on all supported Pythons. Use idiomatic Python and remove workaround for an issue that no longer exists. Makes the code more forward compatible with Python 3.
Diffstat (limited to 'oauthlib/oauth1/rfc5849/__init__.py')
-rw-r--r--oauthlib/oauth1/rfc5849/__init__.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py
index 87a8e6b..887ab69 100644
--- a/oauthlib/oauth1/rfc5849/__init__.py
+++ b/oauthlib/oauth1/rfc5849/__init__.py
@@ -18,11 +18,6 @@ try:
except ImportError:
import urllib.parse as urlparse
-if sys.version_info[0] == 3:
- bytes_type = bytes
-else:
- bytes_type = str
-
from oauthlib.common import Request, urlencode, generate_nonce
from oauthlib.common import generate_timestamp, to_unicode
from . import parameters, signature