Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
Sourcery AI committed Sep 8, 2021

Unverified

This user has not yet uploaded their public signing key.
1 parent 547d620 commit cffb2c6
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
@@ -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>']:
33 changes: 16 additions & 17 deletions pymake/_utils.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cffb2c6

Please sign in to comment.