diff options
-rw-r--r-- | setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -387,10 +387,10 @@ or with the pg_config option in 'setup.cfg'. ) # Support unicode paths, if this version of Python provides the # necessary infrastructure: - if hasattr(sys, 'getfilesystemencoding'): + if sys.version_info[0] < 3 \ + and hasattr(sys, 'getfilesystemencoding'): pg_config_path = pg_config_path.encode( - sys.getfilesystemencoding() - ) + sys.getfilesystemencoding()) return pg_config_path |