Skip to content

Commit

Permalink
style. refs #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 18, 2024
1 parent 9a58a7b commit 25a1399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/net/netdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,10 @@ def write(self, file, item):
file.write(" " * INDENT * self.level)
file.write(item)

def attr_string(self, names, values, missing = None):
def attr_string(self, names, values, missing=None):
if missing is not None:
missing += [n for n, v in sorted(zip(names, values)) if v is MISSING_DEFAULT]
return ' '.join(['%s="%s"' % (n, v) for n, v in sorted(zip(names, values)) if v is not None and v is not MISSING_DEFAULT])
return ' '.join(['%s="%s"' % (n, v) for n, v in sorted(zip(names, values)) if v is not None and v is not MISSING_DEFAULT]) # noqa

def id_string(self, tag, id):
idattrs = IDATTRS[tag]
Expand Down

0 comments on commit 25a1399

Please sign in to comment.