Skip to content

Commit

Permalink
Final changes to fix printing error in the debug command
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Seers committed Jun 25, 2018
1 parent b36fcda commit f0f7cbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pan_indent_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ def main():
parser.add_argument('--debug', action='store_true', help='Enable debug logging.')
parser.add_argument('--diff', action='store_true', help='Enable diff showing.')
args = parser.parse_args()
file_output = None
if args.output:
file_output = open(args.output, 'w+')
else:
elif not args.debug:
file_output = sys.stdout
indent_level = 0

Expand Down

0 comments on commit f0f7cbb

Please sign in to comment.