From 78882b83fa7279b7a63da2546f3f6355f08f0b0f Mon Sep 17 00:00:00 2001 From: liuf5 Date: Thu, 25 Mar 2021 17:18:23 +0800 Subject: [PATCH 1/2] update version 2.0.4.5 --- zoomeye/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zoomeye/__init__.py b/zoomeye/__init__.py index 9689819..ad86a13 100644 --- a/zoomeye/__init__.py +++ b/zoomeye/__init__.py @@ -11,5 +11,5 @@ __name__ = 'zoomeye' __package__ = 'zoomeye' -__version__ = ' 2.0.4.4' +__version__ = ' 2.0.4.5' __site__ = "https://www.zoomeye.org/doc" From 894d88c3ee345bb6ee6741ba182fec6c9069ffae Mon Sep 17 00:00:00 2001 From: liuf5 Date: Thu, 25 Mar 2021 17:33:09 +0800 Subject: [PATCH 2/2] feat:change print format --- zoomeye/show.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zoomeye/show.py b/zoomeye/show.py index 08b31f6..fb60960 100644 --- a/zoomeye/show.py +++ b/zoomeye/show.py @@ -34,15 +34,15 @@ def convert_str(s): d = { '\n': '\\n', '\r': '\\r', - '\t': '\\t' + '\t': '\\t', + '\b': '\\b', + '\a': '\\a', } for c in s: - if ord(c) > 0xff or ord(c) in range(32, 127): - res.append(c) - elif c in d.keys(): + if c in d.keys(): res.append(d[c]) else: - res.append('\\x%.2x' % ord(c)) + res.append(c) return ''.join(res)