removed duplicated code, using pydal's _compat.py
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user