Skip to content

Commit cffb2c6

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent 547d620 commit cffb2c6

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

pymake/_main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def main(argv=None):
4949

5050
if opts['--print-data-base']:
5151
print("List of detected aliases:")
52-
print('\n'.join(alias for alias in sorted(commands.keys())))
52+
print('\n'.join(sorted(commands.keys())))
5353
return
5454

5555
if not opts['<target>']:

pymake/_utils.py

+16-17
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22

33
__all__ = ["ConfigParser", "StringIO", "_sh", "shlex"]
44

5-
if True: # pragma: no cover
6-
try:
7-
import ConfigParser
8-
import StringIO
9-
except ImportError:
10-
import configparser as ConfigParser
11-
import io as StringIO
12-
13-
try:
14-
_unich = unichr
15-
except NameError:
16-
_unich = chr
17-
18-
try:
19-
_unicode = unicode
20-
except NameError:
21-
_unicode = str
5+
try:
6+
import ConfigParser
7+
import StringIO
8+
except ImportError:
9+
import configparser as ConfigParser
10+
import io as StringIO
11+
12+
try:
13+
_unich = unichr
14+
except NameError:
15+
_unich = chr
16+
17+
try:
18+
_unicode = unicode
19+
except NameError:
20+
_unicode = str
2221

2322
if sys.version_info >= (2, 7): # pragma: no cover
2423
import shlex

0 commit comments

Comments
 (0)