summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml/gen_pack_header.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/genxml/gen_pack_header.py')
-rw-r--r--src/intel/genxml/gen_pack_header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py
index 6a4c8033a70..4bce425d12e 100644
--- a/src/intel/genxml/gen_pack_header.py
+++ b/src/intel/genxml/gen_pack_header.py
@@ -220,7 +220,7 @@ def num_from_str(num_str):
if num_str.lower().startswith('0x'):
return int(num_str, base=16)
else:
- assert(not num_str.startswith('0') and 'octals numbers not allowed')
+ assert not num_str.startswith('0'), 'octals numbers not allowed'
return int(num_str)
class Field(object):