Fixed indent errors.
svn: r15904
This commit is contained in:
parent
a52072d79e
commit
4679718cc2
20
src/Utils.py
20
src/Utils.py
@ -339,17 +339,17 @@ def get_unicode_path(path):
|
|||||||
|
|
||||||
if constfunc.win():
|
if constfunc.win():
|
||||||
# in windows filechooser returns officially utf-8, not filesystemencoding
|
# in windows filechooser returns officially utf-8, not filesystemencoding
|
||||||
try:
|
try:
|
||||||
return unicode(path)
|
return unicode(path)
|
||||||
except:
|
except:
|
||||||
LOG.warn("Problem encountered converting string: %s." % path)
|
LOG.warn("Problem encountered converting string: %s." % path)
|
||||||
return unicode(path, sys.getfilesystemencoding(), errors='replace')
|
return unicode(path, sys.getfilesystemencoding(), errors='replace')
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
return unicode(path, sys.getfilesystemencoding())
|
return unicode(path, sys.getfilesystemencoding())
|
||||||
except:
|
except:
|
||||||
LOG.warn("Problem encountered converting string: %s." % path)
|
LOG.warn("Problem encountered converting string: %s." % path)
|
||||||
return unicode(path, sys.getfilesystemencoding(), errors='replace')
|
return unicode(path, sys.getfilesystemencoding(), errors='replace')
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user