Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
haidaraM committed Jul 17, 2022
1 parent e6b7d17 commit 7916bf7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ansibleplaybookgrapher/postprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
import re
from typing import Dict

from ansible.utils.display import Display
Expand All @@ -22,9 +21,6 @@

from ansibleplaybookgrapher.graph import PlaybookNode

# This a pattern to extract the "translate" transformation from the svg
TRANSLATE_PATTERN = re.compile(".*translate\((?P<x>[+-]?[0-9]*[.]?[0-9]+) (?P<y>[+-]?[0-9]*[.]?[0-9]+)\).*")

display = Display()
DISPLAY_PREFIX = "postprocessor:"

Expand Down Expand Up @@ -196,7 +192,9 @@ def _curve_text_on_edges(self):

for edge in edge_elements:
path_elements = edge.findall(".//path", namespaces=self.root.nsmap)
display.vvvvv(f"{DISPLAY_PREFIX} {len(path_elements)} path(s) found on the edge '{edge.get('id')}'")
display.vvvvv(
f"{DISPLAY_PREFIX} {len(path_elements)} path(s) found on the edge '{edge.get('id')}'"
)
text_element = edge.find(".//text", namespaces=self.root.nsmap)

# Define an ID for the path so that we can reference it explicitly
Expand Down

0 comments on commit 7916bf7

Please sign in to comment.