style: Convert GenerateServoCSSPropList.py to py3.

Differential Revision: https://phabricator.services.mozilla.com/D70308
This commit is contained in:
Mike Hommey 2020-04-09 11:03:02 +00:00 committed by Emilio Cobos Álvarez
parent 87139a3ea2
commit 07c1b39637
6 changed files with 29 additions and 25 deletions

View file

@ -680,7 +680,7 @@
% endfor
let mut bits = ${type}::empty();
% for servo_bit, gecko_bit in bit_map.iteritems():
% for servo_bit, gecko_bit in bit_map.items():
if kw & (${gecko_bit_prefix}${gecko_bit} as ${kw_type}) != 0 {
bits |= ${servo_bit};
}
@ -696,7 +696,7 @@
let mut bits: ${kw_type} = 0;
// FIXME: if we ensure that the Servo bitflags storage is the same
// as Gecko's one, we can just copy it.
% for servo_bit, gecko_bit in bit_map.iteritems():
% for servo_bit, gecko_bit in bit_map.items():
if self.contains(${servo_bit}) {
bits |= ${gecko_bit_prefix}${gecko_bit} as ${kw_type};
}
@ -732,7 +732,7 @@
% if include_aliases:
<%
aliases = []
for alias, v in keyword.aliases_for(engine).iteritems():
for alias, v in keyword.aliases_for(engine).items():
if variant == v:
aliases.append(alias)
%>