[glib] mkenums: Do not check for None
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] mkenums: Do not check for None
- Date: Sun, 16 Jul 2017 11:07:25 +0000 (UTC)
commit 69389bdc3475e2b5621f69bb1da2b3781a52539c
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Jul 16 12:06:34 2017 +0100
mkenums: Do not check for None
The symprefix variable can only be a string.
gobject/glib-mkenums.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 13ed24a..602f271 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -447,7 +447,7 @@ def process_file(curfilename):
enumshort = re.sub(r'([A-Z][A-Z])([A-Z][0-9a-z])', r'\1_\2', enumshort)
enumshort = enumshort.upper()
- if symprefix is not None:
+ if symprefix:
enumname_prefix = symprefix.upper()
else:
enumname_prefix = idprefix.upper()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]