Anonymous avatar Anonymous committed a4d4940

The other functions expect these two variables to be global, but when durin42 moved the parsing loop into a function in d3d24f62f581, he made them local, causing a NameError. Fixing this now by making them global again.

Also moved binary_images up above architecture, and added a blank line after them, separating them from the (remaining) local variables.

Comments (0)

Files changed (1)

 	)
 	opts, args = parser.parse_args()
 
+	global binary_images
+	binary_images = {} # Keys: bundle IDs; values: UUIDs
+	global architecture
+	architecture = None
+
 	work = False
-	architecture = None
 	is_in_backtrace = False
 	is_in_thread_state = False
 	is_in_binary_images = False
 	backtrace_lines = []
 	thread_state_lines = []
 	binary_image_lines = []
-	binary_images = {} # Keys: bundle IDs; values: UUIDs
 
 	for line in fileinput.input(args):
 		line_stripped = line.strip()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.