style: Fix python3 lint issues on servo.

Differential Revision: https://phabricator.services.mozilla.com/D35247
This commit is contained in:
Calixte Denizet 2019-07-05 14:29:44 +00:00 committed by Emilio Cobos Álvarez
parent 4abfa1a2d8
commit 1c452e6c45
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -558,7 +558,7 @@ class PropertiesData(object):
longhand = Longhand(self.current_style_struct, name, **kwargs)
self.add_prefixed_aliases(longhand)
longhand.alias = list(map(lambda (x, p): Alias(x, longhand, p), longhand.alias))
longhand.alias = list(map(lambda xp: Alias(xp[0], longhand, xp[1]), longhand.alias))
self.longhand_aliases += longhand.alias
self.current_style_struct.longhands.append(longhand)
self.longhands.append(longhand)
@ -574,7 +574,7 @@ class PropertiesData(object):
sub_properties = [self.longhands_by_name[s] for s in sub_properties]
shorthand = Shorthand(name, sub_properties, *args, **kwargs)
self.add_prefixed_aliases(shorthand)
shorthand.alias = list(map(lambda (x, p): Alias(x, shorthand, p), shorthand.alias))
shorthand.alias = list(map(lambda xp: Alias(xp[0], shorthand, xp[1]), shorthand.alias))
self.shorthand_aliases += shorthand.alias
self.shorthands.append(shorthand)
return shorthand