Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
218037ea
Commit
218037ea
authored
Apr 07, 2014
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup/order imports according to PEP8
parent
6c1899b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
dream/platform/__init__.py
dream/platform/__init__.py
+10
-12
No files found.
dream/platform/__init__.py
View file @
218037ea
...
@@ -18,22 +18,22 @@
...
@@ -18,22 +18,22 @@
# along with DREAM. If not, see <http://www.gnu.org/licenses/>.
# along with DREAM. If not, see <http://www.gnu.org/licenses/>.
# ===========================================================================
# ===========================================================================
import
sys
import
os
import
argparse
import
argparse
import
json
import
json
import
urllib
import
xlrd
import
traceback
import
multiprocessing
from
dream.KnowledgeExtraction.DistributionFitting
import
DistFittest
from
dream.KnowledgeExtraction.ImportExceldata
import
Import_Excel
import
os.path
import
logging
import
logging
import
multiprocessing
import
os
import
signal
import
sys
import
traceback
import
urllib
from
flask
import
Flask
,
jsonify
,
redirect
,
url_for
from
flask
import
Flask
,
jsonify
,
redirect
,
url_for
from
flask
import
request
from
flask
import
request
import
xlrd
from
dream.KnowledgeExtraction.DistributionFitting
import
DistFittest
from
dream.KnowledgeExtraction.ImportExceldata
import
Import_Excel
global
klass_name
global
klass_name
klass_name
=
None
klass_name
=
None
...
@@ -115,8 +115,6 @@ def runWithTimeout(func, timeout, *args, **kw):
...
@@ -115,8 +115,6 @@ def runWithTimeout(func, timeout, *args, **kw):
return
queue
.
get
()
return
queue
.
get
()
def
_runWithTimeout
(
queue
,
func
,
args
,
kw
):
def
_runWithTimeout
(
queue
,
func
,
args
,
kw
):
import
signal
import
traceback
if
hasattr
(
signal
,
'SIGUSR1'
):
if
hasattr
(
signal
,
'SIGUSR1'
):
signal
.
signal
(
signal
.
SIGUSR1
,
lambda
sig
,
stack
:
traceback
.
print_stack
(
stack
))
signal
.
signal
(
signal
.
SIGUSR1
,
lambda
sig
,
stack
:
traceback
.
print_stack
(
stack
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment