From 4f9f0e6fbf1be3805f9995c536a583eda1260bee Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Fri, 2 Oct 2009 13:43:23 +0200 Subject: [PATCH 1/1] More UTF-8 vs. mercurial vs. os.listdir problems. --- apps/api/handlers/library_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1