Skip to content

Commit

Permalink
Merge pull request #35 from knownsec/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
wh0am1i authored Mar 25, 2021
2 parents 7236fe9 + 894d88c commit f010dce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion zoomeye/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

__name__ = 'zoomeye'
__package__ = 'zoomeye'
__version__ = ' 2.0.4.4'
__version__ = ' 2.0.4.5'
__site__ = "https://www.zoomeye.org/doc"
10 changes: 5 additions & 5 deletions zoomeye/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit f010dce

Please sign in to comment.