[Python-modules-commits] [pypandoc] 06/08: Fix parsing of unicode paths on non-unicode locales
Elena Grandi
valhalla-guest at moszumanska.debian.org
Sat Nov 5 14:08:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
valhalla-guest pushed a commit to branch master
in repository pypandoc.
commit f24e93e8ba0403556b2e3b905790ad356c0f3757
Author: Elena Grandi <valhalla-d at trueelena.org>
Date: Sat Nov 5 13:50:56 2016 +0100
Fix parsing of unicode paths on non-unicode locales
---
pypandoc/__init__.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pypandoc/__init__.py b/pypandoc/__init__.py
index 8da7529..c6f18ec 100644
--- a/pypandoc/__init__.py
+++ b/pypandoc/__init__.py
@@ -149,8 +149,7 @@ def _identify_path(source):
try:
path = os.path.exists(source)
except UnicodeEncodeError:
- source = source.encode('utf-8')
- path = os.path.exists(source)
+ path = os.path.exists(source.encode('utf-8'))
except:
path # still false
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pypandoc.git
More information about the Python-modules-commits
mailing list