Merge branch 'master' of git://git.assembla.com/fpdb-eric
This commit is contained in:
commit
1aa68a9075
|
@ -42,6 +42,8 @@ def to_utf8(s):
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
sys.stderr.write('Could not convert: "%s"\n' % s)
|
sys.stderr.write('Could not convert: "%s"\n' % s)
|
||||||
raise
|
raise
|
||||||
|
except TypeError: # TypeError is raised when we give unicode() an already encoded string
|
||||||
|
return s
|
||||||
|
|
||||||
def to_db_utf8(s):
|
def to_db_utf8(s):
|
||||||
if not_needed: return s
|
if not_needed: return s
|
||||||
|
@ -62,4 +64,3 @@ def to_gui(s):
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
sys.stderr.write('Could not convert: "%s"\n' % s)
|
sys.stderr.write('Could not convert: "%s"\n' % s)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user