From 53c1c5dcc1da6aa36ee9f53c5276739053b85897 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 28 Nov 2017 10:22:02 +0200 Subject: Remove redundant hasattr checks --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index f010ef5..efcf81d 100644 --- a/setup.py +++ b/setup.py @@ -214,8 +214,7 @@ or with the pg_config option in 'setup.cfg'. # Support unicode paths, if this version of Python provides the # necessary infrastructure: - if sys.version_info[0] < 3 \ - and hasattr(sys, 'getfilesystemencoding'): + if sys.version_info[0] < 3: pg_config_path = pg_config_path.encode( sys.getfilesystemencoding()) -- cgit v1.2.1