summaryrefslogtreecommitdiffstats
path: root/misc/ninja_syntax.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ninja_syntax.py')
-rw-r--r--misc/ninja_syntax.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/misc/ninja_syntax.py b/misc/ninja_syntax.py
index f285420..73d2209 100644
--- a/misc/ninja_syntax.py
+++ b/misc/ninja_syntax.py
@@ -22,10 +22,8 @@ class Writer(object):
self.output.write('\n')
def comment(self, text, has_path=False):
- args = {}
- if has_path:
- args['break_long_words'] = args['break_on_hyphens'] = False
- for line in textwrap.wrap(text, self.width - 2, **args):
+ for line in textwrap.wrap(text, self.width - 2, break_long_words=False,
+ break_on_hyphens=False):
self.output.write('# ' + line + '\n')
def variable(self, key, value, indent=0):