diff options
author | 2014-12-25 12:31:35 -0800 | |
---|---|---|
committer | 2014-12-25 12:31:35 -0800 | |
commit | 5cbb4cb9100dc4451d359e7a711d2bd84837c64c (patch) | |
tree | b69db2eded6a0e2d8db749727c88d2cd079c9edb /gkeys | |
parent | gkeys-ldap/cli.py: Update print_results assignment for CliBase (diff) | |
download | gentoo-keys-5cbb4cb9100dc4451d359e7a711d2bd84837c64c.tar.gz gentoo-keys-5cbb4cb9100dc4451d359e7a711d2bd84837c64c.tar.bz2 gentoo-keys-5cbb4cb9100dc4451d359e7a711d2bd84837c64c.zip |
gkeys/SaneConfigParser: Fix py3 imports
Diffstat (limited to 'gkeys')
-rw-r--r-- | gkeys/gkeys/SaneConfigParser.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gkeys/gkeys/SaneConfigParser.py b/gkeys/gkeys/SaneConfigParser.py index 3bb69b5..0616335 100644 --- a/gkeys/gkeys/SaneConfigParser.py +++ b/gkeys/gkeys/SaneConfigParser.py @@ -1,14 +1,11 @@ import sys -# py3.2 -if sys.hexversion >= 0x30200f0: - from configparser import configparser as ConfigParser +try: + from configparser import ConfigParser from configparser import NoSectionError - py3 = True -else: +except: from ConfigParser import ConfigParser, NoSectionError - py3 = False class SaneConfigParser(ConfigParser): |