summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2019-01-19 21:57:10 +0100
committerHartmut Goebel <h.goebel@crazy-compilers.com>2019-01-19 21:57:10 +0100
commit4b41816ab4e8216e91d7e53812d27d9a9c47f5b4 (patch)
treeab83b5084d52c1b90228a3610da8c6019093656d
parent7bff5380fb22fa27eecd09d3a2e37d9fc085246c (diff)
Mark strings.encTable as private.
-rw-r--r--gnunet/strings.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnunet/strings.py b/gnunet/strings.py
index 1484495..5bf2c9e 100644
--- a/gnunet/strings.py
+++ b/gnunet/strings.py
@@ -3,7 +3,7 @@ import datetime
from . import *
-encTable = "0123456789ABCDEFGHIJKLMNOPQRSTUV"
+__encTable = "0123456789ABCDEFGHIJKLMNOPQRSTUV"
def data_to_string(data):
@@ -20,9 +20,9 @@ def data_to_string(data):
vbit += 8
while vbit >= 5:
vbit -= 5
- ret += encTable[(bits >> vbit) & 31]
+ ret += __encTable[(bits >> vbit) & 31]
if vbit > 0:
- ret += encTable[(bits << (5 - vbit)) & 31]
+ ret += __encTable[(bits << (5 - vbit)) & 31]
return ret