Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion ck/ck/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#

import sys
import os

##############################################################################

Expand Down
18 changes: 4 additions & 14 deletions ck/ck/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

# Import packages that are global for the whole kernel
import sys
import json
import os
import imp # Needed to load CK Python modules from CK repositories

Expand Down Expand Up @@ -442,7 +441,6 @@ def restore_state(r):

global initialized, cfg, paths_repos, cache_repo_init, paths_repos_all, cache_repo_uoa, cache_repo_info

import copy
import os

cfg = r['cfg']
Expand Down Expand Up @@ -553,7 +551,6 @@ def debug_out(i):

"""

import copy
import json

ii = {}
Expand Down Expand Up @@ -1151,7 +1148,6 @@ def convert_iso_time(i):
t = i['iso_datetime']

import datetime
import time

dto = None

Expand Down Expand Up @@ -3166,7 +3162,6 @@ def download(i):

# Download file
# Import modules compatible with Python 2.x and 3.x
import urllib

try:
from urllib.request import urlretrieve
Expand Down Expand Up @@ -4177,7 +4172,6 @@ def perform_remote_action(i):
"""

# Import modules compatible with Python 2.x and 3.x
import urllib

try:
import urllib.request as urllib2
Expand Down Expand Up @@ -6058,9 +6052,9 @@ def status(i):
import urllib2

try:
from urllib.parse import urlencode
pass
except:
from urllib import urlencode
pass

page = ''
try:
Expand Down Expand Up @@ -9416,7 +9410,6 @@ def list_data(i):

if aidb != '' or aida != '' or aid != '':

import datetime
if aidb != '':
rx = convert_iso_time({'iso_datetime': aidb})
if rx['return'] > 0:
Expand Down Expand Up @@ -9858,7 +9851,6 @@ def list_data2(i):
lst = rr['lst']
if len(lst) == 0 and cfg.get('download_missing_components', '') == 'yes':
# Search on cKnowledge.org
import copy

oo = ''
if o == 'con':
Expand Down Expand Up @@ -10035,7 +10027,6 @@ def search(i):
lst = rr['lst']
if len(lst) == 0 and cfg.get('download_missing_components', '') == 'yes':
# Search on cKnowledge.org
import copy

oo = ''
if o == 'con':
Expand Down Expand Up @@ -10890,9 +10881,9 @@ def access_index_server(i):
import urllib2

try:
from urllib.parse import urlencode
pass
except:
from urllib import urlencode
pass

# Prepare post variables
r = dumps_json({'dict': dd, 'skip_indent': 'yes'})
Expand Down Expand Up @@ -12251,7 +12242,6 @@ def filter_delete_index(i):
def rm_read_only(f, p, e):
import os
import stat
import errno

ex = e[1]

Expand Down
8 changes: 2 additions & 6 deletions ck/ck/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
# Developer: Grigori Fursin
#

import urllib
import json
import sys

try:
from urllib.parse import urlencode
from urllib.parse import quote_plus
except:
from urllib import urlencode
from urllib import quote_plus

try:
Expand Down Expand Up @@ -124,17 +121,16 @@ def access_ck_api(i):
d = i.get('dict', {})

# Import modules compatible with Python 2.x and 3.x
import urllib

try:
import urllib.request as urllib2
except:
import urllib2

try:
from urllib.parse import urlencode
pass
except:
from urllib import urlencode
pass

# Prepare post variables
r = ck.strings.dump_json({'dict': d, 'skip_indent': 'yes'})
Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/apk/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import os

##############################################################################
# Initialize module
Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/artifact/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def snapshot(i):
"""

import os
import platform
import zipfile
import shutil

Expand Down
7 changes: 3 additions & 4 deletions ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#

from . import config
from . import comm

import ck.kernel as ck

Expand All @@ -32,9 +31,9 @@
import urlparse

try:
from urllib.parse import quote as urlquote
pass
except:
from urllib import quote as urlquote
pass

try:
from urllib.parse import unquote as urlunquote
Expand All @@ -49,7 +48,7 @@
try:
from socketserver import ThreadingMixIn
except:
from SocketServer import ThreadingMixInqZBMfAaH
pass



Expand Down
7 changes: 2 additions & 5 deletions ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import ck.kernel as ck

import json
import sys
import os

Expand All @@ -33,13 +32,12 @@ def send(i):
"""

# Import modules compatible with Python 2.x and 3.x
import urllib

try: import urllib.request as urllib2
except: import urllib2

try: from urllib.parse import urlencode
except: from urllib import urlencode
try: pass
except: pass

# Get server and user config
config=i.get('config',{})
Expand Down Expand Up @@ -239,7 +237,6 @@ def download_file(i):
fn=i['file']

# Import modules compatible with Python 2.x and 3.x
import urllib

try: from urllib.request import urlretrieve
except: from urllib import urlretrieve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import json
import sys
import os

##############################################################################
# Send JSON request to the cK portal (without CK)
Expand All @@ -26,13 +25,12 @@ def send(i):
"""

# Import modules compatible with Python 2.x and 3.x
import urllib

try: import urllib.request as urllib2
except: import urllib2

try: from urllib.parse import urlencode
except: from urllib import urlencode
try: pass
except: pass

url=i.get('url')
if url=='' or url==None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import ck.kernel as ck

import json
import os
import copy

Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import ck.kernel as ck

import json
import zipfile
import os
import time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
#

from . import config
from . import comm
from . import obj
from . import graph

import ck.kernel as ck

import json
import zipfile
import os
import locale

Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/dashboard/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

# Local settings

import os

fdata_name='ck_top_data'
fmodule_name='ck_top_module'
Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/dataset.features/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def extract(i):
"""

import os
import json

o=i.get('out','')

Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/dataset/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ def check_size(i):
"""

import os
import json

o=i.get('out','')

Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/env/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,6 @@ def refresh(i):
name=i.get('name','')
wname=False
if name.find('*')>=0 or name.find('?')>=0:
import fnmatch
wname=True
name=name.lower()

Expand Down
2 changes: 0 additions & 2 deletions ck/ck/repo/module/experiment.bench.dnn.mobile/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def show(i):

"""

import os
import copy
import time

Expand Down Expand Up @@ -1442,7 +1441,6 @@ def generate(i):
"""

import os
import copy
import shutil
import itertools

Expand Down
2 changes: 0 additions & 2 deletions ck/ck/repo/module/experiment.bench.dnn/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,8 +1527,6 @@ def replay(i):

"""

import copy
import os

# Setting output
o=i.get('out','')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import copy

##############################################################################
# Initialize module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import copy

##############################################################################
# Initialize module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import copy

##############################################################################
# Initialize module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import copy

##############################################################################
# Initialize module
Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/experiment.tune.cuda.ws.e/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import copy

##############################################################################
# Initialize module
Expand Down
1 change: 0 additions & 1 deletion ck/ck/repo/module/experiment.tune.opencl.lws.e/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import copy

##############################################################################
# Initialize module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ck=None # Will be updated by CK (initialized CK kernel)

# Local settings
import copy

##############################################################################
# Initialize module
Expand Down
Loading
Loading