diff --git a/examples/batteries/similar_methods.py b/examples/batteries/similar_methods.py index 568327d2..db176a74 100644 --- a/examples/batteries/similar_methods.py +++ b/examples/batteries/similar_methods.py @@ -32,9 +32,9 @@ title_height = 40 # Space for title # Calculate total page height based on pairs -for edip, T - reX in pairs.items(): +for edip, T_reX in pairs.items(): edip_file = next((f for f in os.listdir(svg_dir) if edip in f), None) - T_reX_file = next((f for f in os.listdir(svg_dir) if T - reX in f), None) + T_reX_file = next((f for f in os.listdir(svg_dir) if T_reX in f), None) if edip_file and T_reX_file: edip_svg = svg2rlg(os.path.join(svg_dir, edip_file)) @@ -69,9 +69,9 @@ print("Metadata set.") # Loop through pairs and add SVG files to the PDF -for edip, T - reX in pairs.items(): +for edip, T_reX in pairs.items(): edip_file = next((f for f in os.listdir(svg_dir) if edip in f), None) - T_reX_file = next((f for f in os.listdir(svg_dir) if T - reX in f), None) + T_reX_file = next((f for f in os.listdir(svg_dir) if T_reX in f), None) if edip_file and T_reX_file: # Draw the first SVG