Skip to content

Commit 039160b

Browse files
committed
flake8
1 parent 7e10446 commit 039160b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/gen-spec-js.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def EscapeJSString(s):
166166
def IsValidJSConstant(const):
167167
type_ = const['type']
168168
value = const['value']
169-
if type_ in ('f32','f64') and value in ('nan:canonical', 'nan:arithmetic'):
169+
if type_ in ('f32', 'f64') and value in ('nan:canonical', 'nan:arithmetic'):
170170
return True
171171
if type_ == 'i32':
172172
return True
@@ -450,7 +450,7 @@ def _Constant(self, const):
450450
assert IsValidJSConstant(const), 'Invalid JS const: %s' % const
451451
type_ = const['type']
452452
value = const['value']
453-
if type_ in ('f32','f64') and value in ('nan:canonical', 'nan:arithmetic'):
453+
if type_ in ('f32', 'f64') and value in ('nan:canonical', 'nan:arithmetic'):
454454
return value
455455
if type_ == 'i32':
456456
return I32ToJS(int(value))

test/run-spec-wasm2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _WriteAssertActionCommand(self, command):
266266
def _Constant(self, const):
267267
type_ = const['type']
268268
value = const['value']
269-
if type_ in ('f32','f64') and value in ('nan:canonical', 'nan:arithmetic'):
269+
if type_ in ('f32', 'f64') and value in ('nan:canonical', 'nan:arithmetic'):
270270
assert False
271271
if type_ == 'i32':
272272
return '%su' % int(value)

0 commit comments

Comments
 (0)