Ticket #18404: encoding.patch
File encoding.patch, 629 bytes (added by , 12 years ago) |
---|
-
storage.py
old new 1 1 from __future__ import with_statement 2 2 import hashlib 3 3 import os 4 import sys 4 5 import posixpath 5 6 import re 6 7 from urllib import unquote … … 268 269 mod = import_module(app) 269 270 mod_path = os.path.dirname(mod.__file__) 270 271 location = os.path.join(mod_path, self.source_dir) 272 fs_encoding = sys.getfilesystemencoding() or sys.getdefaultencoding() 273 location = location.decode(fs_encoding) 271 274 super(AppStaticStorage, self).__init__(location, *args, **kwargs) 272 275 273 276