Skip to content

Commit

Permalink
Split a long string to appease pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
spakin committed Nov 14, 2024
1 parent 09df767 commit 7d3f06c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simpinkscr/simple_inkscape_scripting.py
Original file line number Diff line number Diff line change
Expand Up @@ -3724,7 +3724,8 @@ def effect(self):

# Remove an unnecessary import that may be introduced when
# running from Visual Studio Code.
pattern = r"^[ \t]*(import\s+(inkex|simpinkscr).*|(from\s+(inkex|simpinkscr)\s+import).*)[\r\n]"
pattern = r"^[ \t]*(import\s+(inkex|simpinkscr).*|" \
r"(from\s+(inkex|simpinkscr)\s+import).*)[\r\n]"
code = re.sub(pattern, "", code, flags=re.MULTILINE)

# Launch the user's script.
Expand Down

0 comments on commit 7d3f06c

Please sign in to comment.