aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/platform.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-17 14:49:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-17 14:49:48 +0300
commit4c7e63364f53b940084bc46ca2d29b50dc3aab7f (patch)
tree455f792fb30370d6468f7e1556b6210043e82258 /project/platform.py
parentGIANT CLUSTERFUCK OF A COMMIT (diff)
downloadcmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.tar.gz
cmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.zip
fix PyLint warnings
Diffstat (limited to '')
-rw-r--r--project/platform.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project/platform.py b/project/platform.py
index 8eb7f3e..d25827b 100644
--- a/project/platform.py
+++ b/project/platform.py
@@ -15,7 +15,7 @@ class Platform(Enum):
X64 = 'x64'
def __str__(self):
- return self.value
+ return str(self.value)
@staticmethod
def native():
@@ -35,8 +35,8 @@ class Platform(Enum):
# AppVeyor convention:
return Platform.X86
return Platform(s)
- except ValueError:
- raise argparse.ArgumentTypeError(f'invalid platform: {s}')
+ except ValueError as e:
+ raise argparse.ArgumentTypeError(f'invalid platform: {s}') from e
def get_address_model(self):
'''Maps to Boost's address-model.'''