Skip to content

Commit

Permalink
Fix for python3 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebryant committed Oct 8, 2014
1 parent ee85fef commit 95bc6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_autoconfig/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def test_logging_premature_imports(self):
Test that logging doesn't cause premature imports.
'''

import logging, StringIO
output = StringIO.StringIO()
import logging, io
output = io.StringIO()
stream_handler = logging.StreamHandler(output)
logger = logging.getLogger('django_autoconfig.autoconfig')
logger.addHandler(stream_handler)
Expand Down

0 comments on commit 95bc6ea

Please sign in to comment.