Skip to content

Commit

Permalink
Merge pull request #37 from rpatterson/master
Browse files Browse the repository at this point in the history
Python 3 compatibility fix
  • Loading branch information
HassenPy authored Jul 18, 2017
2 parents 5215323 + 1001488 commit a192e51
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
0.6.1 - Python 3 compatibility fix
0.6.0 - Version 0.6 (Django 1.10 support)
0.4.0 - Py3k support
0.2.3 - Update README with better info re. conflicting apps.
Expand Down
2 changes: 1 addition & 1 deletion django_pdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import print_function
from django.conf import settings
__version__ = '0.6.0'
__version__ = '0.6.1'

POST_MORTEM = getattr(settings, 'POST_MORTEM', False)
DEBUG = getattr(settings, 'DEBUG', False)
Expand Down
6 changes: 5 additions & 1 deletion django_pdb/management/commands/runserver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import print_function

import sys
import pdb

Expand Down Expand Up @@ -77,7 +79,9 @@ def reraise(self, request, exc_type, exc_value, tb):
else:
p = pdb
if self.pm:
print >>sys.stderr, "Exception occured: %s, %s" % (exc_type, exc_value)
print(
"Exception occured: %s, %s" % (exc_type, exc_value),
file=sys.stderr)
p.post_mortem(tb)
else:
raise
2 changes: 2 additions & 0 deletions django_pdb/middleware.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import print_function

import inspect
import os
import pdb
Expand Down

0 comments on commit a192e51

Please sign in to comment.