PY3 fixes and added tests for gluon/admin.py

This commit is contained in:
ilvalle
2016-06-24 22:54:56 +02:00
parent 48350664f0
commit 8aecaf4514
19 changed files with 75 additions and 69 deletions
+3 -3
View File
@@ -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: