pylint: enable simplifiable-if-statement

pull/11117/head
Dylan Baker 2 years ago committed by Eli Schwartz
parent 1502431fe9
commit 67da2ad0fb
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 1
      .pylintrc
  2. 5
      mesonbuild/build.py
  3. 6
      mesonbuild/scripts/depfixer.py

@ -52,7 +52,6 @@ disable=
redefined-argument-from-local,
redefined-builtin,
redefined-outer-name,
simplifiable-if-statement,
subprocess-run-check,
super-init-not-called,
too-few-public-methods,

@ -2194,11 +2194,6 @@ class SharedLibrary(BuildTarget):
super().process_kwargs(kwargs)
if not self.environment.machines[self.for_machine].is_android():
supports_versioning = True
else:
supports_versioning = False
if supports_versioning:
# Shared library version
if 'version' in kwargs:
self.ltversion = kwargs['version']

@ -83,10 +83,8 @@ class DynamicEntry(DataSizes):
class SectionHeader(DataSizes):
def __init__(self, ifile: T.BinaryIO, ptrsize: int, is_le: bool) -> None:
super().__init__(ptrsize, is_le)
if ptrsize == 64:
is_64 = True
else:
is_64 = False
is_64 = ptrsize == 64
# Elf64_Word
self.sh_name = struct.unpack(self.Word, ifile.read(self.WordSize))[0]
# Elf64_Word

Loading…
Cancel
Save