Skip to content

Commit 9a5cb0d

Browse files
committed
chore: black
1 parent 7ca713e commit 9a5cb0d

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

src/diazo/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def compile_theme(
177177
def main():
178178
"""Called from console script"""
179179
parser = _createOptionParser(usage=usage)
180-
(options, args) = parser.parse_args()
180+
options, args = parser.parse_args()
181181

182182
if options.rules is None:
183183
if len(args) == 2 and options.theme is None:

src/diazo/cssrules.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</rules>\
1111
"""
1212

13-
1413
from cssselect import GenericTranslator
1514
from diazo import utils
1615
from lxml import etree
@@ -102,7 +101,7 @@ def main():
102101
dest="pretty_print",
103102
default=False,
104103
)
105-
(options, args) = parser.parse_args()
104+
options, args = parser.parse_args()
106105

107106
if len(args) != 1:
108107
parser.error("Invalid number of arguments")

src/diazo/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def main():
372372
dest="stop",
373373
default=None,
374374
)
375-
(options, args) = parser.parse_args()
375+
options, args = parser.parse_args()
376376

377377
if options.rules is None:
378378
if len(args) == 2 and options.theme is None:

src/diazo/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def main():
7878
dest="runtrace_html",
7979
default=None,
8080
)
81-
(options, args) = op.parse_args()
81+
options, args = op.parse_args()
8282

8383
if len(args) > 2:
8484
op.error("Wrong number of arguments.")

src/diazo/runtrace.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ def log_to_xml_string(error_log):
1717
<runtrace xmlns:css="http://namespaces.plone.org/diazo/css">
1818
{message:s}
1919
</runtrace>
20-
""".format(
21-
message="".join(msgs)
22-
)
20+
""".format(message="".join(msgs))
2321

2422

2523
def generate_runtrace(rules, error_log, rules_parser=None):

0 commit comments

Comments
 (0)