[gtk-doc] mkdb: fix 2 pep8 style warnings
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: fix 2 pep8 style warnings
- Date: Mon, 8 Jan 2018 22:45:35 +0000 (UTC)
commit 174ddc86f188e4696d6a282224b491d8f7b07fe3
Author: Stefan Sauer <ensonic users sf net>
Date: Mon Jan 8 23:45:03 2018 +0100
mkdb: fix 2 pep8 style warnings
gtkdoc/mkdb.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc/mkdb.py b/gtkdoc/mkdb.py
index c8cf095..6c394e5 100644
--- a/gtkdoc/mkdb.py
+++ b/gtkdoc/mkdb.py
@@ -454,7 +454,7 @@ def OutputDB(file, options):
elif m3:
filename = m3.group(1)
- if not filename in file_def_line:
+ if filename not in file_def_line:
file_def_line[filename] = line_number
else:
common.LogWarning(file, line_number, "Double <FILE>%s</FILE> entry. Previous occurrence on
line %s." %
@@ -4100,7 +4100,7 @@ def OutputUnusedSymbols():
UNUSED = common.open_text(new_unused_file, 'w')
for symbol in sorted(iterkeys(Declarations)):
- if not symbol in DeclarationOutput:
+ if symbol not in DeclarationOutput:
UNUSED.write("%s\n" % symbol)
num_unused += 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]