Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Sep 8, 2021
1 parent 547d620 commit 2595e30
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pymake/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def main(argv=None):

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

if not opts['<target>']:
Expand Down
33 changes: 16 additions & 17 deletions pymake/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@

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

if True: # pragma: no cover
try:
import ConfigParser
import StringIO
except ImportError:
import configparser as ConfigParser
import io as StringIO

try:
_unich = unichr
except NameError:
_unich = chr

try:
_unicode = unicode
except NameError:
_unicode = str
try:
import ConfigParser
import StringIO
except ImportError:
import configparser as ConfigParser
import io as StringIO

try:
_unich = unichr
except NameError:
_unich = chr

try:
_unicode = unicode
except NameError:
_unicode = str

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

0 comments on commit 2595e30

Please sign in to comment.