Skip to content

Commit

Permalink
Removes NullHandler patching (Python 2.6 is no longer supported)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Sep 25, 2017
1 parent d482ea8 commit a1770a4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/galaxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,3 @@
import zipfile
if not hasattr(zipfile, 'BadZipFile'):
zipfile.BadZipFile = zipfile.error

# compat: patch to add the NullHandler class to logging
import logging
if not hasattr(logging, 'NullHandler'):
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.NullHandler = NullHandler

0 comments on commit a1770a4

Please sign in to comment.