mirror of https://github.com/dirtbags/netarch.git
putting in dbch to sync with hdng
This commit is contained in:
parent
f34cc4cdba
commit
5ee05be32c
|
@ -41,23 +41,6 @@ decch = (u'␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏'
|
||||||
u'················'
|
u'················'
|
||||||
u'················')
|
u'················')
|
||||||
|
|
||||||
cgach = (u'␀☺☻♥♦♣♠•◘○◙♂♀♪♫☼'
|
|
||||||
u'►◄↕‼¶§▬↨↑↓→←∟↔▲▼'
|
|
||||||
u' !"#$%&\'()*+,-./'
|
|
||||||
u'0123456789:;<=>?'
|
|
||||||
u'@ABCDEFGHIJKLMNO'
|
|
||||||
u'PQRSTUVWXYZ[\]^_'
|
|
||||||
u'`abcdefghijklmno'
|
|
||||||
u'pqrstuvwxyz{|}~⌂'
|
|
||||||
u'ÇüéâäàåçêëèïîìÄÅ'
|
|
||||||
u'ÉæÆôöòûùÿÖÜ¢£¥₧ƒ'
|
|
||||||
u'áíóúñѪº¿⌐¬½¼¡«»'
|
|
||||||
u'░▒▓│┤╡╢╖╕╣║╗╝╜╛┐'
|
|
||||||
u'└┴┬├─┼╞╟╚╔╩╦╠═╬╧'
|
|
||||||
u'╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀'
|
|
||||||
u'αßΓπΣσµτΦΘΩδ∞φε∩'
|
|
||||||
u'≡±≥≤⌠⌡÷≈°∙·√ⁿ²■¤')
|
|
||||||
|
|
||||||
shpch = (u'␀☺☻♥♦♣♠•◘○◙♂♀♪♫☼'
|
shpch = (u'␀☺☻♥♦♣♠•◘○◙♂♀♪♫☼'
|
||||||
u'►◄↕‼¶§▬↨↑↓→←∟↔▲▼'
|
u'►◄↕‼¶§▬↨↑↓→←∟↔▲▼'
|
||||||
u'␣!"#$%&\'()*+,-./'
|
u'␣!"#$%&\'()*+,-./'
|
||||||
|
@ -75,7 +58,22 @@ shpch = (u'␀☺☻♥♦♣♠•◘○◙♂♀♪♫☼'
|
||||||
u'αßΓπΣσµτΦΘΩδ∞φε∩'
|
u'αßΓπΣσµτΦΘΩδ∞φε∩'
|
||||||
u'≡±≥≤⌠⌡÷≈°∙·√ⁿ²■¤')
|
u'≡±≥≤⌠⌡÷≈°∙·√ⁿ²■¤')
|
||||||
|
|
||||||
|
dbch = (u'·☺☻♥♦♣♠•◘○◙♂♀♪♫☼'
|
||||||
|
u'►◄↕‼¶§▬↨↑↓→←∟↔▲▼'
|
||||||
|
u' !"#$%&\'()*+,-./'
|
||||||
|
u'0123456789:;<=>?'
|
||||||
|
u'@ABCDEFGHIJKLMNO'
|
||||||
|
u'PQRSTUVWXYZ[\]^_'
|
||||||
|
u'`abcdefghijklmno'
|
||||||
|
u'pqrstuvwxyz{|}~⌂'
|
||||||
|
u'ÇüéâäàåçêëèïîìÄÅ'
|
||||||
|
u'ÉæÆôöòûùÿÖÜ¢£¥€ƒ'
|
||||||
|
u'áíóúñѪº½⅓¼⅕⅙⅛«»'
|
||||||
|
u'░▒▓│┤╡╢╖╕╣║╗╝╜╛┐'
|
||||||
|
u'└┴┬├─┼╞╟╚╔╩╦╠═╬╧'
|
||||||
|
u'╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀'
|
||||||
|
u'αßΓπΣσµτΦΘΩδ∞φε∩'
|
||||||
|
u'⁰¹²³⁴⁵⁶⁷⁸⁹ⁱⁿ⁽⁼⁾¤')
|
||||||
|
|
||||||
def unpack(fmt, buf):
|
def unpack(fmt, buf):
|
||||||
"""Unpack buf based on fmt, return the rest as a string."""
|
"""Unpack buf based on fmt, return the rest as a string."""
|
||||||
|
@ -95,8 +93,7 @@ class HexDumper(object):
|
||||||
if not c:
|
if not c:
|
||||||
return u'◌'
|
return u'◌'
|
||||||
else:
|
else:
|
||||||
return cgach[ord(c)]
|
return dbch[ord(c)]
|
||||||
|
|
||||||
|
|
||||||
def write(self, what):
|
def write(self, what):
|
||||||
self.fd.write(what.encode('utf-8'))
|
self.fd.write(what.encode('utf-8'))
|
||||||
|
|
Loading…
Reference in New Issue