Skip to content
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

Fix PEP8 for azure-cli #1661

Merged
merged 1 commit into from
Jan 6, 2017
Merged
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
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
try:
if user_agrees_to_telemetry():
init_telemetry()
except Exception: #pylint: disable=broad-except
except Exception: # pylint: disable=broad-except
pass

args = sys.argv[1:]
Expand All @@ -35,5 +35,5 @@
try:
if user_agrees_to_telemetry():
telemetry_flush()
except Exception: #pylint: disable=broad-except
except Exception: # pylint: disable=broad-except
pass
6 changes: 3 additions & 3 deletions src/azure-cli/azure/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

logger = _logging.get_az_logger(__name__)

def main(args, file=sys.stdout): #pylint: disable=redefined-builtin

def main(args, file=sys.stdout): # pylint: disable=redefined-builtin
_logging.configure_logging(args)

if len(args) > 0 and args[0] == '--version':
Expand All @@ -38,9 +39,8 @@ def main(args, file=sys.stdout): #pylint: disable=redefined-builtin
from azure.cli.core._output import OutputProducer
formatter = OutputProducer.get_formatter(APPLICATION.configuration.output_format)
OutputProducer(formatter=formatter, file=file).out(cmd_result)
except Exception as ex: # pylint: disable=broad-except
except Exception as ex: # pylint: disable=broad-except
from azure.cli.core.telemetry import log_telemetry
log_telemetry('Error', log_type='trace')
error_code = handle_exception(ex)
return error_code

3 changes: 2 additions & 1 deletion src/azure-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
except OSError:
pass
else:
import re, sys
import re
import sys
m = re.search(r'__version__\s*=\s*[\'"](.+?)[\'"]', content)
if not m:
print('Could not find __version__ in azure/cli/__init__.py')
Expand Down