Skip to content

Commit

Permalink
Remove a fix that didn't fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jsa34 committed Sep 20, 2024
1 parent 66569e7 commit 5f18660
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/gherkin/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@
from gherkin.stream.gherkin_events import GherkinEvents
from gherkin.stream.source_events import SourceEvents

# Ensure UTF-8 encoding for stdout (needed on Windows where the default may not be UTF-8)
sys.stdout = open(sys.stdout.fileno(), mode='w', encoding='utf-8', buffering=1)


parser = OptionParser()
parser.add_option("--no-source", action="store_false", dest="print_source", default=True, help="don't print source events")
parser.add_option("--no-ast", action="store_false", dest="print_ast", default=True, help="don't print ast events")
parser.add_option("--no-pickles", action="store_false", dest="print_pickles", default=True, help="don't print pickle events")

(options, args) = parser.parse_args()
options, args = parser.parse_args()

source_events = SourceEvents(args)
gherkin_events = GherkinEvents(options)
Expand Down

0 comments on commit 5f18660

Please sign in to comment.