@@ -19,10 +19,10 @@ def get_crawl_args(message):
19
19
args = [to_native_str (msg ["_spider" ])]
20
20
del msg ["_project" ], msg ["_spider" ]
21
21
settings = msg .pop ("settings" , {})
22
- for k , v in native_stringify_dict (msg , keys_only = False ).items ():
22
+ for k , v in native_stringify_dict (msg ).items ():
23
23
args += ["-a" ]
24
24
args += [f"{ k } ={ v } " ]
25
- for k , v in native_stringify_dict (settings , keys_only = False ).items ():
25
+ for k , v in native_stringify_dict (settings ).items ():
26
26
args += ["-s" ]
27
27
args += [f"{ k } ={ v } " ]
28
28
return args
@@ -57,12 +57,12 @@ def _spawn_process(self, message, slot):
57
57
environ = self .app .getComponent (IEnvironment )
58
58
message .setdefault ("settings" , {})
59
59
message ["settings" ].update (environ .get_settings (message ))
60
- msg = native_stringify_dict (message , keys_only = False )
60
+ msg = native_stringify_dict (message )
61
61
project = msg ["_project" ]
62
62
args = [sys .executable , "-m" , self .runner , "crawl" ]
63
63
args += get_crawl_args (msg )
64
64
env = environ .get_environment (msg , slot )
65
- env = native_stringify_dict (env , keys_only = False )
65
+ env = native_stringify_dict (env )
66
66
pp = ScrapyProcessProtocol (project , msg ["_spider" ], msg ["_job" ], env , args )
67
67
pp .deferred .addBoth (self ._process_finished , slot )
68
68
reactor .spawnProcess (pp , sys .executable , args = args , env = env )
0 commit comments