From ea570bcb6704629a4a503548865a8dc19c872a39 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 31 Dec 2016 20:12:24 +0100 Subject: [PATCH] style: fix E265 violations E265: block comment should start with '# ' Signed-off-by: Igor Gnatenko --- mesonbuild/backend/vs2010backend.py | 4 ++-- mesonbuild/compilers.py | 2 +- mesonbuild/scripts/depfixer.py | 18 +++++++++--------- run_project_tests.py | 2 +- tools/cmake2meson.py | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 37d415793..8bfc2e4d7 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -1070,5 +1070,5 @@ if %%errorlevel%% neq 0 goto :VCEnd''' tree = ET.ElementTree(root) tree.write(ofname, encoding='utf-8', xml_declaration=True) # ElementTree can not do prettyprinting so do it manually - #doc = xml.dom.minidom.parse(ofname) - #open(ofname, 'w').write(doc.toprettyxml()) + # doc = xml.dom.minidom.parse(ofname) + # open(ofname, 'w').write(doc.toprettyxml()) diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index a1942772d..c885afec7 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -2446,7 +2446,7 @@ end program prog def get_dependency_gen_args(self, outtarget, outfile): # Disabled until this is fixed: # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162 - #return ['-cpp', '-MMD', '-MQ', outtarget] + # return ['-cpp', '-MMD', '-MQ', outtarget] return [] def get_output_args(self, target): diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index 1a19a8acf..708814f35 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -76,29 +76,29 @@ class SectionHeader(DataSizes): is_64 = True else: is_64 = False -#Elf64_Word +# Elf64_Word self.sh_name = struct.unpack(self.Word, ifile.read(self.WordSize))[0]; -#Elf64_Word +# Elf64_Word self.sh_type = struct.unpack(self.Word, ifile.read(self.WordSize))[0] -#Elf64_Xword +# Elf64_Xword if is_64: self.sh_flags = struct.unpack(self.XWord, ifile.read(self.XWordSize))[0] else: self.sh_flags = struct.unpack(self.Word, ifile.read(self.WordSize))[0] -#Elf64_Addr +# Elf64_Addr self.sh_addr = struct.unpack(self.Addr, ifile.read(self.AddrSize))[0]; -#Elf64_Off +# Elf64_Off self.sh_offset = struct.unpack(self.Off, ifile.read(self.OffSize))[0] -#Elf64_Xword +# Elf64_Xword if is_64: self.sh_size = struct.unpack(self.XWord, ifile.read(self.XWordSize))[0] else: self.sh_size = struct.unpack(self.Word, ifile.read(self.WordSize))[0] -#Elf64_Word +# Elf64_Word self.sh_link = struct.unpack(self.Word, ifile.read(self.WordSize))[0]; -#Elf64_Word +# Elf64_Word self.sh_info = struct.unpack(self.Word, ifile.read(self.WordSize))[0]; -#Elf64_Xword +# Elf64_Xword if is_64: self.sh_addralign = struct.unpack(self.XWord, ifile.read(self.XWordSize))[0] else: diff --git a/run_project_tests.py b/run_project_tests.py index a11847bde..9f1d4d8a1 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -84,7 +84,7 @@ def stop_handler(signal, frame): signal.signal(signal.SIGINT, stop_handler) signal.signal(signal.SIGTERM, stop_handler) -#unity_flags = ['--unity'] +# unity_flags = ['--unity'] unity_flags = [] backend_flags = None diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index 28222a58c..5cf6dfea5 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -70,7 +70,7 @@ class Lexer: elif tid == 'id': yield(Token('id', match_text)) elif tid == 'eol': - #yield('eol') + # yield('eol') lineno += 1 col = 1 line_start = mo.end()