summaryrefslogtreecommitdiff
path: root/rsa/_compat.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2016-01-22 11:36:06 +0100
committerSybren A. Stüvel <sybren@stuvel.eu>2016-01-22 11:36:06 +0100
commitd3d10345b47c2b17922bb91059cfceea82f82338 (patch)
tree6a336d74ee41a4ba98b6b3d97f123cd0c5f4e9b7 /rsa/_compat.py
parent541ee468b6b33c7ae27818bbfea63df9622f9d8a (diff)
downloadrsa-git-d3d10345b47c2b17922bb91059cfceea82f82338.tar.gz
Big refactor to become more PEP8 compliant.
Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
Diffstat (limited to 'rsa/_compat.py')
-rw-r--r--rsa/_compat.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/rsa/_compat.py b/rsa/_compat.py
index 3c4eb81..c654770 100644
--- a/rsa/_compat.py
+++ b/rsa/_compat.py
@@ -16,7 +16,6 @@
"""Python compatibility wrappers."""
-
from __future__ import absolute_import
import sys
@@ -42,7 +41,6 @@ else:
# Else we just assume 64-bit processor keeping up with modern times.
MACHINE_WORD_SIZE = 64
-
try:
# < Python3
unicode_type = unicode
@@ -75,7 +73,6 @@ except NameError:
# Python 2.5
bytes_type = str
-
# To avoid calling b() multiple times in tight loops.
ZERO_BYTE = b('\x00')
EMPTY_BYTE = b('')