Permalink
Browse files

py3 compat

  • Loading branch information...
1 parent 5d5d2e6 commit 0e0e9afa91d73a57a7fbc3c6e410ff88a56bfb34 @mcdonc mcdonc committed with reedobrien Mar 13, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 pyramid/tests/test_scripts/test_pserve.py
View
7 pyramid/tests/test_scripts/test_pserve.py
@@ -1,9 +1,14 @@
import atexit
-import __builtin__
import os
import tempfile
import unittest
+from pyramid.compat import PY3
+if PY3: # pragma: no cover
+ import builtins as __builtin__
+else:
+ import __builtin__
+
class TestPServeCommand(unittest.TestCase):
def setUp(self):
from pyramid.compat import NativeIO

0 comments on commit 0e0e9af

Please sign in to comment.