[PATCH 2/4] Add one more flag to test (for Python3)
Vratislav Podzimek
vpodzime at redhat.com
Mon Dec 8 09:35:45 UTC 2014
Also make the flags mandatory so that we don't require Python2 flags from
Python3 and vice versa.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
meh/dump.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meh/dump.py b/meh/dump.py
index fa72238..faa5008 100644
--- a/meh/dump.py
+++ b/meh/dump.py
@@ -125,11 +125,12 @@ class ExceptionDump(object):
"verbose": "-v",
"unicode": "-u",
"bytes_warning": "-b",
+ "quiet": "-q",
}
ret = set()
for flag in flags_to_opts.keys():
- if getattr(sys.flags, flag):
+ if getattr(sys.flags, flag, None):
ret.add(flags_to_opts[flag])
ret = list(ret)
return ret
--
1.9.3
More information about the anaconda-patches
mailing list