Skip to content

Commit

Permalink
Fixed pickle import and print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Lai committed Sep 20, 2019
1 parent 1798cfb commit ca8f1d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ait/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import bdb
from collections import defaultdict
import cPickle as pickle
import pickle
import importlib
import json
import os
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def install_ui_deps():
FNULL = open(os.devnull, 'wb')
subprocess.check_call("npm", stdout=FNULL, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
print subprocess.check_output("cd ait/gui/static; npm install", shell=True)
print(subprocess.check_output('cd ait/gui/static; npm install', shell=True))
except OSError:
print "Unable to locate npm on system. Skipping dependency installation"
print('Unable to locate npm on system. Skipping dependency installation')
finally:
FNULL.close()

Expand All @@ -53,10 +53,10 @@ def finalize_options(self):

def run(self):
if self.with_ui_deps:
print "UI Dependency installation requested. Running ..."
print('UI Dependency installation requested. Running ...')
install_ui_deps()
else:
print "UI Dependency installation not requested. Skipping ..."
print('UI Dependency installation not requested. Skipping ...')

develop.run(self)

Expand All @@ -75,10 +75,10 @@ def finalize_options(self):

def run(self):
if self.with_ui_deps:
print "UI Dependency installation requested. Running ..."
print('UI Dependency installation requested. Running ...')
install_ui_deps()
else:
print "UI Dependency installation not requested. Skipping ..."
print('UI Dependency installation not requested. Skipping ...')

install.run(self)

Expand Down

0 comments on commit ca8f1d3

Please sign in to comment.