We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da58b1 commit 3ab2e86Copy full SHA for 3ab2e86
sc2reader/scripts/sc2json.py
@@ -15,13 +15,6 @@ def main():
15
default=None,
16
help="The per-line indent to use when printing a human readable json string",
17
)
18
- parser.add_argument(
19
- "--encoding",
20
- "-e",
21
- type=str,
22
- default="UTF-8",
23
- help="The character encoding use..",
24
- )
25
parser.add_argument(
26
"path",
27
metavar="path",
@@ -34,8 +27,8 @@ def main():
34
factory = sc2reader.factories.SC2Factory()
35
28
try:
36
29
factory.register_plugin(
37
- "Replay", toJSON(encoding=args.encoding, indent=args.indent)
38
- ) # legacy Python
30
+ "Replay", toJSON(indent=args.indent)
31
+ )
39
32
except TypeError:
40
33
factory.register_plugin("Replay", toJSON(indent=args.indent))
41
replay_json = factory.load_replay(args.path[0])
0 commit comments