aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2016-12-31 20:12:24 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-01 12:02:05 -0500
commitea570bcb6704629a4a503548865a8dc19c872a39 (patch)
tree030b348fff7aab035fbbbf1afb589ae7b15b1c4c
parentf19bec34a911f4c67cfb0dc3d87794b57b6b49e3 (diff)
downloadmeson-ea570bcb6704629a4a503548865a8dc19c872a39.zip
meson-ea570bcb6704629a4a503548865a8dc19c872a39.tar.gz
meson-ea570bcb6704629a4a503548865a8dc19c872a39.tar.bz2
style: fix E265 violations
E265: block comment should start with '# ' Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
-rw-r--r--mesonbuild/backend/vs2010backend.py4
-rw-r--r--mesonbuild/compilers.py2
-rw-r--r--mesonbuild/scripts/depfixer.py18
-rwxr-xr-xrun_project_tests.py2
-rwxr-xr-xtools/cmake2meson.py2
5 files changed, 14 insertions, 14 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 37d4157..8bfc2e4 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 a194277..c885afe 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 1a19a8a..708814f 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 a11847b..9f1d4d8 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 28222a5..5cf6dfe 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()