Skip to content

Commit d189246

Browse files
committed
Remove unnecessary aliasing
This is a hangover from when we needed to support Python 2. Signed-off-by: Stephen Finucane <[email protected]>
1 parent 4d2f914 commit d189246

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pwclient/shell.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# SPDX-License-Identifier: GPL-2.0-or-later
77

8+
import configparser
89
import os
910
import sys
1011

@@ -38,7 +39,7 @@ def main(argv=sys.argv[1:]):
3839
action = args.subcmd
3940

4041
# grab settings from config files
41-
config = utils.configparser.ConfigParser()
42+
config = configparser.ConfigParser()
4243
config.read([CONFIG_FILE])
4344

4445
if not config.has_section('options') and os.path.exists(CONFIG_FILE):
@@ -51,8 +52,8 @@ def main(argv=sys.argv[1:]):
5152
try:
5253
project_str = config.get('options', 'default')
5354
except (
54-
utils.configparser.NoSectionError,
55-
utils.configparser.NoOptionError,
55+
configparser.NoSectionError,
56+
configparser.NoOptionError,
5657
):
5758
sys.stderr.write(
5859
'No default project configured in %s\n' % CONFIG_FILE

0 commit comments

Comments
 (0)