Skip to content

Commit 8788a8b

Browse files
committed
Fix PEP8
1 parent 148aa64 commit 8788a8b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

l10n_ch_dta/wizard/unicode2ascii.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
Some of it can be done automatically but some needs to be done by hand, that
1010
I can tell.
1111
"""
12+
import sys
13+
import unicodedata
14+
1215
__version__ = '1.0.1'
1316
__author__ = 'Jim Hefferon: ftpmaint at tug.ctan.org'
1417
__date__ = '2008-July-15'
1518
__notes__ = """As sources, used effbot's web site, and
1619
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871
17-
and
18-
man uni2ascii
20+
and man uni2ascii
1921
"""
20-
import sys
21-
import unicodedata
2222

2323
# These characters that are not done automatically by NFKD, and
2424
# have a name starting with "LATIN". Some of these I found on the interwebs,
@@ -457,7 +457,10 @@ def build_dictionary():
457457
return d
458458

459459
udict = build_dictionary()
460-
convert = lambda s: s.translate(udict)
460+
461+
462+
def convert(string):
463+
return string.translate(udict)
461464

462465

463466
def coroutine(func):

0 commit comments

Comments
 (0)