From 420f146067f5d7b85e707e8ad089a3ee80c9befe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 5 Apr 2017 12:30:35 +0200 Subject: [PATCH] Removed unused code At the bottom of the file, an exception is raised when __name__ == '__main__', stating that it's not allowed to run the file in that way. It's silly to then still set up logging in that case. --- bam/cli.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bam/cli.py b/bam/cli.py index f85a57e..66d45d8 100755 --- a/bam/cli.py +++ b/bam/cli.py @@ -37,10 +37,6 @@ del path import logging log = logging.getLogger("bam_cli") -# if we're a module, don't mess with logging level -if __name__ == "__main__": - logging.basicConfig(level=logging.DEBUG) - def fatal(msg): if __name__ == "__main__":