mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-23 20:11:13 +00:00
removed redundant lines
This commit is contained in:
parent
044d334ef9
commit
7d879b4e33
|
@ -62,9 +62,6 @@ def preprocess_names(name, output_sep=' ', firstname_output_letters=1):
|
|||
if len(spl) > 2:
|
||||
name = '%s %s' % (spl[0], spl[last_pos])
|
||||
|
||||
spl1, *spl2 = name.split()
|
||||
'%s %s' % (spl1, ''.join(spl2))
|
||||
|
||||
# remove accents
|
||||
name = ''.join(x for x in unicodedata.normalize('NFKD', name) if x in string.ascii_letters+' ')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user