From 70378079b4f96a1bd3348aef8fb4ad2d274f48b1 Mon Sep 17 00:00:00 2001 From: SC-McD Date: Fri, 8 Mar 2024 10:15:54 +0100 Subject: [PATCH] fix error --- examples/batteries/similar_methods.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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