Skip to content

Commit

Permalink
Fix print for py3
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Oct 28, 2016
1 parent f2528ab commit 4535f79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions krysa/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def __init__(self, **kw):
if filter_val in ['int', 'float']:
filter = filter_val
except IndexError:
print 'values < space'
Logger.info('KrySA: values < space')
val = '.'

if 'e+' in str(val) or 'e-' in str(val):
Expand Down Expand Up @@ -879,7 +879,7 @@ def _open_project(self, selection, *args):
# dump widgets' properties from process flow to dict, then to json
with open(op.join(selection, fname), 'rb') as f:
project = json.loads(f.read())
print project
# print project

# import from project automatically
self._import_data([op.join(data, 'data.sqlite')])
Expand Down Expand Up @@ -1162,7 +1162,7 @@ def _export_results(self, selection, *args):
where = op.join(selection, str(i).zfill(3) + '.png')
result.children[2].children[0].export_to_png(where)
except IndexError:
print 'No results available.'
Logger.info('KrySA: No results available.')

def flow_reload(self):
# get folders
Expand Down Expand Up @@ -1260,7 +1260,7 @@ def about(*args):

@staticmethod
def test(*args):
print 'ping: ', args
Logger.info('KrySA: ping {}'.format(str(args)))

# non-menu related functions
@staticmethod
Expand Down
1 change: 0 additions & 1 deletion krysa/tasks/avgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def avgs_median(*args):
@staticmethod
def _avgs_median(task, address, *args):
values = task.from_address(task.tablenum, address.text)
print values
length = len(values)
pos = int(round(length / 2.0))
if length == 1:
Expand Down

0 comments on commit 4535f79

Please sign in to comment.