cd5a32c5f9
virtcli-python2-to-python3-conversion.patch virtconv-python2-to-python3-conversion.patch virtinst-python2-to-python3-conversion.patch virtman-python2-to-python3-conversion.patch virtmisc-python2-to-python3-conversion.patch virttests-python2-to-python3-conversion.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=381
28 lines
891 B
Diff
28 lines
891 B
Diff
Index: virt-manager-1.4.3/virtcli/cliconfig.py
|
|
===================================================================
|
|
--- virt-manager-1.4.3.orig/virtcli/cliconfig.py
|
|
+++ virt-manager-1.4.3/virtcli/cliconfig.py
|
|
@@ -21,11 +21,11 @@
|
|
Configuration variables that can be set at build time
|
|
"""
|
|
|
|
-import ConfigParser
|
|
+import configparser
|
|
import os
|
|
|
|
|
|
-_cfg = ConfigParser.ConfigParser()
|
|
+_cfg = configparser.ConfigParser()
|
|
_filepath = os.path.abspath(__file__)
|
|
_srcdir = os.path.abspath(os.path.join(os.path.dirname(_filepath), ".."))
|
|
_cfgpath = os.path.join(os.path.dirname(_filepath), "cli.cfg")
|
|
@@ -46,7 +46,7 @@ def _get_param(name, default):
|
|
return default
|
|
try:
|
|
return _cfg.get("config", name)
|
|
- except (ConfigParser.NoOptionError, ConfigParser.NoSectionError):
|
|
+ except (configparser.NoOptionError, configparser.NoSectionError):
|
|
return default
|
|
|
|
|