trivial: move imports to top of file
This commit is contained in:
parent
4eef831e8f
commit
52e0d92b20
|
@ -18,13 +18,16 @@ import collections
|
|||
import cPickle
|
||||
import ConfigParser
|
||||
import datetime
|
||||
from decimal import Decimal
|
||||
import imp
|
||||
import inspect
|
||||
import os
|
||||
import fcntl
|
||||
import hashlib
|
||||
import json
|
||||
import locale
|
||||
import random
|
||||
import re
|
||||
import socket
|
||||
import sys
|
||||
import time
|
||||
|
@ -136,12 +139,8 @@ class QommonPublisher(Publisher, object):
|
|||
return 'http://%s/backoffice' % os.path.basename(self.app_dir)
|
||||
|
||||
def get_global_eval_dict(self):
|
||||
import datetime
|
||||
import re
|
||||
from decimal import Decimal
|
||||
from . import evalutils as utils
|
||||
def compat_locals():
|
||||
import inspect
|
||||
frame = inspect.getouterframes(inspect.currentframe())[1][0]
|
||||
x = CompatibilityNamesDict(frame.f_locals)
|
||||
return x
|
||||
|
|
Loading…
Reference in New Issue