Skip to content

Commit

Permalink
fix another encoding problem
Browse files Browse the repository at this point in the history
  • Loading branch information
davidak committed Jul 7, 2015
1 parent 45d843a commit 5526850
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pyzufall/helfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,7 @@ def erste_gross(s):
>>> print(c)
Älter als das Internet!
"""
if sys.version_info < (3, 0):
# convert to unicode
s = s.decode('utf-8')
s = s[0].upper() + s[1:]
# convert back
return s.encode('utf-8')
else:
return s[0].upper() + s[1:]
return s[0].upper() + s[1:]


def str_add(wort, string):
Expand Down

0 comments on commit 5526850

Please sign in to comment.