ninja backend: simplify code by using dataclasses

pull/11864/head
Eli Schwartz 1 year ago
parent e869a09bc2
commit 85e0c0a5d7
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 4
      mesonbuild/backend/ninjabackend.py

@ -170,9 +170,9 @@ class NinjaCommandArg:
def list(l, q):
return [NinjaCommandArg(i, q) for i in l]
@dataclass
class NinjaComment:
def __init__(self, comment):
self.comment = comment
comment: str
def write(self, outfile):
for l in self.comment.split('\n'):

Loading…
Cancel
Save