summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-10-11 15:58:26 +0200
committermakefu <github@syntax-fehler.de>2011-10-11 15:58:26 +0200
commit4f4c63c8c778984d68eaa54f6e3fdbb72f96e82a (patch)
tree28dd10ae343542232c26f0663d049edda9f9cf75 /crypto
parentec7f80e6954cc00b6fc87c1d35be269b40868e46 (diff)
ukrepl: fix utf-8 exception
function unicode(unicode-character) throws an exception, return only the ascii character
Diffstat (limited to 'crypto')
-rwxr-xr-xcrypto/bin/ukrepl6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bin/ukrepl b/crypto/bin/ukrepl
index febe2d96..9b084027 100755
--- a/crypto/bin/ukrepl
+++ b/crypto/bin/ukrepl
@@ -32,7 +32,7 @@ cyrillic_dict = {
}
def cyrillic_replace(char): #c
- return cyrillic_dict.get(char,unicode(char))
+ return cyrillic_dict.get(char,char)
historic_latin_dict = {
'B' : u'Ɓ',
'b' : u'ƅ',
@@ -45,7 +45,7 @@ historic_latin_dict = {
'5' : 'Ƽ'
}
def historic_latin(char): #H
- return historic_latin_dict.get(char,unicode(char))
+ return historic_latin_dict.get(char,char)
punctuation_dict = {
'!' : u'ǃ',
'\'': u'’',
@@ -71,7 +71,7 @@ punctuation_dict = {
}
def punctuation(char): #p
- return punctuation_dict.get(char,unicode(char))
+ return punctuation_dict.get(char,char)
def helpme():
print "usage %s [modes]" % sys.argv[0]
print "modes:"