mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 11:16:46 +00:00
Fix PEP Issues
This commit is contained in:
parent
f9e56620df
commit
8e2fb913a5
@ -28,7 +28,9 @@ development will happen as 2.9.x under the git master branch.
|
||||
|
||||
Bugs:
|
||||
|
||||
* None
|
||||
* :issue:`346` - AttributeError: 'module' object has no attribute 'SIGHUP'
|
||||
on Windows
|
||||
|
||||
|
||||
Features:
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ from ..utils import fs
|
||||
if sys.version_info[0] >= 3:
|
||||
from imp import reload # pragma: nocover
|
||||
|
||||
|
||||
LOG = minimal_logger(__name__)
|
||||
if platform.system() == 'Windows':
|
||||
SIGNALS = [signal.SIGTERM, signal.SIGINT]
|
||||
else:
|
||||
SIGNALS = [signal.SIGTERM, signal.SIGINT, signal.SIGHUP]
|
||||
|
||||
|
||||
def add_handler_override_options(app):
|
||||
"""
|
||||
This is a ``post_setup`` hook that adds the handler override options to
|
||||
|
||||
@ -46,7 +46,7 @@ class CementDevtoolsController(ArgparseController):
|
||||
# make sure we don't have any un-added files
|
||||
print('Checking for Untracked Files')
|
||||
out, err, res = shell.exec_cmd(['git', 'status'])
|
||||
if re.match('Untracked files', str(out):
|
||||
if re.match('Untracked files', str(out)):
|
||||
self._do_error('There are untracked files. See `git status`.')
|
||||
|
||||
# make sure there isn't an existing tag
|
||||
|
||||
Loading…
Reference in New Issue
Block a user