removed duplicated code, using pydal's _compat.py

This commit is contained in:
mdipierro
2016-08-01 03:39:22 -05:00
parent 4519985dc2
commit 35eaba1096
51 changed files with 87 additions and 232 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ is restarted (or reload=True is passed).
"""
import os
import json
from gluon._compat import thread, configparser
from pydal._compat import thread, configparser
from gluon.globals import current
locker = thread.allocate_lock()
+1 -1
View File
@@ -42,7 +42,7 @@ revision3.com
viddler.com
"""
from __future__ import print_function
from gluon._compat import FancyURLopener, urllib_quote
from pydal._compat import FancyURLopener, urllib_quote
import re
import cgi
+1 -1
View File
@@ -6,7 +6,7 @@
from __future__ import print_function
import re
import urllib
from gluon._compat import maketrans, urllib_quote, unicodeT, _local_html_escape, to_bytes, to_native, _local_html_escape as escape, xrange
from pydal._compat import maketrans, urllib_quote, unicodeT, _local_html_escape, to_bytes, to_native, _local_html_escape as escape, xrange
from ast import parse as ast_parse
import ast
+1 -1
View File
@@ -29,7 +29,7 @@
An interactive, stateful AJAX shell that runs Python code on the server.
"""
from __future__ import print_function
from gluon._compat import ClassType, pickle, StringIO
from pydal._compat import ClassType, pickle, StringIO
import logging
import new
import sys
+1 -1
View File
@@ -16,7 +16,7 @@ mostly for testing purposes
Some examples at the bottom.
"""
from __future__ import print_function
from gluon._compat import urllib2, cookielib, iteritems, to_native, urlencode, to_bytes
from pydal._compat import urllib2, cookielib, iteritems, to_native, urlencode, to_bytes
import re
import time