File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,6 @@ def main():
15
15
default = None ,
16
16
help = "The per-line indent to use when printing a human readable json string" ,
17
17
)
18
- parser .add_argument (
19
- "--encoding" ,
20
- "-e" ,
21
- type = str ,
22
- default = "UTF-8" ,
23
- help = "The character encoding use.." ,
24
- )
25
18
parser .add_argument (
26
19
"path" ,
27
20
metavar = "path" ,
@@ -33,9 +26,7 @@ def main():
33
26
34
27
factory = sc2reader .factories .SC2Factory ()
35
28
try :
36
- factory .register_plugin (
37
- "Replay" , toJSON (encoding = args .encoding , indent = args .indent )
38
- ) # legacy Python
29
+ factory .register_plugin ("Replay" , toJSON (indent = args .indent ))
39
30
except TypeError :
40
31
factory .register_plugin ("Replay" , toJSON (indent = args .indent ))
41
32
replay_json = factory .load_replay (args .path [0 ])
You can’t perform that action at this time.
0 commit comments