1. Chris Mutel
  2. brightway2-data

Commits

Chris Mutel  committed 94bb611

0.9.1.1: Better understanding of filename encodings

  • Participants
  • Parent commits 86d9cef
  • Branches default

Comments (0)

Files changed (2)

File bw2data/_config.py

View file
  • Ignore whitespace
                     os.path.join(user_dir, filename),
                     encoding='utf-8'
                 ).readline().strip()
-                # config.dir should always be a bytestring, not unicode
-                if self._windows:
-                    candidate = candidate.encode('utf-16')
+                if os.path.supports_unicode_filenames:
+                    # Leaving as unicode is OK
+                    pass
                 else:
+                    # posix systems except for Mac OS X
                     candidate = candidate.encode('utf-8')
                 assert os.path.exists(candidate)
                 self._dir_from = filename

File setup.py

View file
  • Ignore whitespace
 
 setup(
     name='bw2data',
-    version="0.9.1",
+    version="0.9.1.1",
     packages=packages,
     author="Chris Mutel",
     author_email="cmutel@gmail.com",