Skip to content

Commit f010dce

Browse files
authored
Merge pull request #35 from knownsec/dev
Dev
2 parents 7236fe9 + 894d88c commit f010dce

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

zoomeye/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111

1212
__name__ = 'zoomeye'
1313
__package__ = 'zoomeye'
14-
__version__ = ' 2.0.4.4'
14+
__version__ = ' 2.0.4.5'
1515
__site__ = "https://www.zoomeye.org/doc"

zoomeye/show.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ def convert_str(s):
3434
d = {
3535
'\n': '\\n',
3636
'\r': '\\r',
37-
'\t': '\\t'
37+
'\t': '\\t',
38+
'\b': '\\b',
39+
'\a': '\\a',
3840
}
3941
for c in s:
40-
if ord(c) > 0xff or ord(c) in range(32, 127):
41-
res.append(c)
42-
elif c in d.keys():
42+
if c in d.keys():
4343
res.append(d[c])
4444
else:
45-
res.append('\\x%.2x' % ord(c))
45+
res.append(c)
4646
return ''.join(res)
4747

4848

0 commit comments

Comments
 (0)