jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/866794 )

Change subject: category_graph: use f-strings for style
......................................................................

category_graph: use f-strings for style

Change-Id: I491147856ccf6e4b9751dcf3e6c062f5e503763e
---
M scripts/category_graph.py
1 file changed, 13 insertions(+), 4 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/scripts/category_graph.py b/scripts/category_graph.py
index cd810a3..0110480 100755
--- a/scripts/category_graph.py
+++ b/scripts/category_graph.py
@@ -73,11 +73,11 @@
         self.leaves = set()
         self.counter = 0
         font = 'fontname="Helvetica,Arial,sans-serif"'
-        style = 'rankdir=LR ranksep=2 concentrate=true ' + font + \
-                'node [newrank=true shape=plaintext ' + font + ']' \
+        style = 'graph [rankdir=LR ranksep=2 concentrate=true %s] ' \
+                'node [newrank=true shape=plaintext %s] ' \
                 'edge [arrowhead=open labeldistance=3 ' \
-                'labelfontcolor="#00000080" ' + font + '] ' \
-                + args.style
+                'labelfontcolor="#00000080" %s] ' \
+                % (font, font, font) + args.style
         self.dot = pydot.graph_from_dot_data('digraph {' + style + '}')[0]
         self.dot.set_name('"' + cat_title + '"')


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/866794
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I491147856ccf6e4b9751dcf3e6c062f5e503763e
Gerrit-Change-Number: 866794
Gerrit-PatchSet: 4
Gerrit-Owner: Costa Shul <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to