From: Ɓukasz Rekucki Date: Fri, 2 Oct 2009 11:43:23 +0000 (+0200) Subject: More UTF-8 vs. mercurial vs. os.listdir problems. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/4f9f0e6fbf1be3805f9995c536a583eda1260bee?ds=sidebyside;hp=-c More UTF-8 vs. mercurial vs. os.listdir problems. --- 4f9f0e6fbf1be3805f9995c536a583eda1260bee diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index 3c75c81f..f113834b 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -259,7 +259,7 @@ class DocumentGalleryHandler(BaseHandler): for file in os.listdir(dirpath): if not isinstance(file, unicode): - log.warn(u"File %s is gallery %s is not unicode. Ommiting."\ + log.warn(u"File %r is gallery %r is not unicode. Ommiting."\ % (file, dirpath) ) continue