Skip to content

Commit

Permalink
logging.Formatter is not new-style in 2.6
Browse files Browse the repository at this point in the history
so we can't use super.

closes ipython#3968
  • Loading branch information
minrk committed Aug 9, 2013
1 parent a9ab28a commit 0a3f203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions IPython/config/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ def format(self, record):
record.highlevel = self.highlevel_format % record.__dict__
else:
record.highlevel = ""

return super(LevelFormatter, self).format(record)
if sys.version_info[:2] > (2,6):
return super(LevelFormatter, self).format(record)
else:
return logging.Formatter.format(self, record)


class Application(SingletonConfigurable):
Expand Down

0 comments on commit 0a3f203

Please sign in to comment.