mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 02:02:41 +02:00
...
This commit is contained in:
parent
34523ac958
commit
d58de47f0e
1 changed files with 1 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ def exists(self, path):
|
|||
# On linux, if LANG is unset, the os.stat call tries to encode the
|
||||
# unicode path using ASCII
|
||||
# To replicate try:
|
||||
# LANG=en_US.ASCII python -c "import os; os.stat('Espa\xf1a')"
|
||||
# LANG=en_US.ASCII python -c "import os; os.stat(u'Espa\xf1a')"
|
||||
return os.path.isfile(path.encode(filesystem_encoding))
|
||||
|
||||
def namelist(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue