From 920712936a4106f6d0187dbeda4cf585c9244739 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 11 Feb 2014 00:22:15 +0400 Subject: [PATCH] Refactor else+if to elif --- mimedecode.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mimedecode.py b/mimedecode.py index 884f358..9db4278 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -258,12 +258,11 @@ def decode_message(msg): if msg.epilogue: output(msg.epilogue) - else: - if msg.has_key("Content-Type"): # Simple one-part message - decode it - decode_part(msg) + elif msg.has_key("Content-Type"): # Simple one-part message - decode it + decode_part(msg) - else: # Not a message, just text - copy it literally - output(msg.as_string()) + else: # Not a message, just text - copy it literally + output(msg.as_string()) class GlobalOptions: -- 2.39.5