summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_extensions.py
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-08-16 15:41:53 +0100
committerEric Engestrom <[email protected]>2018-08-16 17:38:25 +0100
commit81c1989e4ff229d6fc49fab1c01eaab3d81432dc (patch)
tree499035e6d4a8a775b2de0f1bc6f433a23a5dd15e /src/intel/vulkan/anv_extensions.py
parentaa78b29ebad710d743747bb9b9755b6eea9ed4d2 (diff)
intel: various python cleanups
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_extensions.py')
-rw-r--r--src/intel/vulkan/anv_extensions.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py
index 9a65aed1c46..cafb6060c6b 100644
--- a/src/intel/vulkan/anv_extensions.py
+++ b/src/intel/vulkan/anv_extensions.py
@@ -32,10 +32,9 @@ import xml.etree.cElementTree as et
def _bool_to_c_expr(b):
if b is True:
return 'true'
- elif b is False:
+ if b is False:
return 'false'
- else:
- return b
+ return b
class Extension:
def __init__(self, name, ext_version, enable):
@@ -142,7 +141,7 @@ class VkVersion:
# VK_MAKE_VERSION macro
assert self.major < 1024 and self.minor < 1024
assert self.patch is None or self.patch < 4096
- assert(str(self) == string)
+ assert str(self) == string
def __str__(self):
ver_list = [str(self.major), str(self.minor)]