Skip to content

Commit

Permalink
Merge "Avoid integer to None comparison for Python 3."
Browse files Browse the repository at this point in the history
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Jun 27, 2016
2 parents cf72894 + 716ffd0 commit e26e3d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/tools/make_standalone_toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,11 @@ def main():
"""Program entry point."""
args = parse_args()

if args.verbose == 1:
if args.verbose is None:
# Integer comparisons against None are not supported in python3. Short
# circuit the checks below here.
pass
elif args.verbose == 1:
logging.basicConfig(level=logging.INFO)
elif args.verbose >= 2:
logging.basicConfig(level=logging.DEBUG)
Expand Down

0 comments on commit e26e3d8

Please sign in to comment.