PY3 fixes and added tests for gluon/admin.py
This commit is contained in:
+3
-3
@@ -13,7 +13,7 @@ from __future__ import print_function
|
||||
|
||||
import datetime
|
||||
import sys
|
||||
from gluon._compat import StringIO, thread
|
||||
from gluon._compat import StringIO, thread, xrange
|
||||
import time
|
||||
import threading
|
||||
import os
|
||||
@@ -87,7 +87,7 @@ class IO(object):
|
||||
def __init__(self):
|
||||
""" """
|
||||
|
||||
self.buffer = cStringIO.StringIO()
|
||||
self.buffer = StringIO()
|
||||
|
||||
def write(self, data):
|
||||
""" """
|
||||
@@ -968,7 +968,7 @@ def console():
|
||||
run_system_tests(options)
|
||||
|
||||
if options.quiet:
|
||||
capture = cStringIO.StringIO()
|
||||
capture = StringIO()
|
||||
sys.stdout = capture
|
||||
logger.setLevel(logging.CRITICAL + 1)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user