Skip to content

Commit

Permalink
remove py3 oldness
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Jul 19, 2019
1 parent 9a0270f commit 9f716e9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions thejoker/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import logging

# Third-party
from astropy.extern.six import PY3
from astropy.logger import StreamHandler
from astropy.utils import find_current_module

Expand Down Expand Up @@ -39,13 +38,10 @@ def makeRecord(self, name, level, pathname, lineno, msg, args, exc_info,
else:
extra['origin'] = 'unknown'

if PY3:
return Logger.makeRecord(self, name, level, pathname, lineno, msg,
args, exc_info, func=func, extra=extra,
sinfo=sinfo)
else:
return Logger.makeRecord(self, name, level, pathname, lineno, msg,
args, exc_info, func=func, extra=extra)

return Logger.makeRecord(self, name, level, pathname, lineno, msg,
args, exc_info, func=func, extra=extra,
sinfo=sinfo)


logging.setLoggerClass(JokerLogger)
Expand Down

0 comments on commit 9f716e9

Please sign in to comment.