summaryrefslogtreecommitdiff
path: root/python3
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2018-08-12 00:22:18 +0200
committerLucas Hoffmann <lucc@posteo.de>2018-10-04 23:55:10 +0200
commit0356246d3ca37f903b4fc43f786d23254d3fd6ab (patch)
tree705171278757bb9eb5bc6018b2adce179cd7a9bc /python3
parentc2d7fb59ec06d3779b090c997c50baf5316001ea (diff)
downloadvdebug-0356246d3ca37f903b4fc43f786d23254d3fd6ab.zip
Do not use deprecated method base64.encodestring
Reported by pylint.
Diffstat (limited to 'python3')
-rw-r--r--python3/vdebug/breakpoint.py2
-rw-r--r--python3/vdebug/dbgp.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python3/vdebug/breakpoint.py b/python3/vdebug/breakpoint.py
index 3b41fa9..ccabcd9 100644
--- a/python3/vdebug/breakpoint.py
+++ b/python3/vdebug/breakpoint.py
@@ -227,7 +227,7 @@ class WatchBreakpoint(Breakpoint):
def get_cmd(self):
cmd = "-t " + self.type
- cmd += " -- " + base64.encodestring(self.expr)
+ cmd += " -- " + base64.encodebytes(self.expr)
return cmd
diff --git a/python3/vdebug/dbgp.py b/python3/vdebug/dbgp.py
index 4c40b70..4641b49 100644
--- a/python3/vdebug/dbgp.py
+++ b/python3/vdebug/dbgp.py
@@ -296,7 +296,7 @@ class Api:
def eval(self, code):
"""Tell the debugger to start or resume
execution."""
- code_enc = base64.encodestring(code.encode('utf-8'))
+ code_enc = base64.encodebytes(code.encode('utf-8'))
args = '-- %s' % code_enc.decode('utf-8')
""" The python engine incorrectly requires length.