Skip to content

Sourcery refactored master branch #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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())))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function main refactored with the following changes:

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
Comment on lines -5 to +20
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 5-21 refactored with the following changes:

This removes the following comments ( why? ):

# pragma: no cover


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