Skip to content

Commit

Permalink
python3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
omarish committed Oct 20, 2015
1 parent b05f9cc commit 73c1e84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion django_cprofile_middleware/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
import cProfile as profile
except ImportError:
import profile

try:
from cStringIO import StringIO
except:
from io import StringIO

import pstats
from io import StringIO
from django.conf import settings


Expand Down

0 comments on commit 73c1e84

Please sign in to comment.