From 56e5ee96f5e1c06c0cb2175718b214d6b8b69ff8 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Thu, 19 Oct 2017 17:01:52 +0200 Subject: [PATCH] minor changes to coding style --- .gitignore | 1 + refine.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100755 => 100644 refine.py diff --git a/.gitignore b/.gitignore index d5c3f97..5749da5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ dist *.pyc .* refine_client.egg-info +refine.spec README.html diff --git a/refine.py b/refine.py old mode 100755 new mode 100644 index ebb668f..1f38d3e --- a/refine.py +++ b/refine.py @@ -466,7 +466,7 @@ def create_project(options, file_fullpath): if 'project' in url_params: project_id = url_params['project'][0] - print 'New project: ' + project_id + print('New project: ' + project_id) else: raise Exception('Project not created') @@ -480,7 +480,7 @@ def create_project(options, file_fullpath): if 'processes' in url_params and len(url_params['processes']) > 0: time.sleep(polling_delay) else: - print 'done' + print('done') return # check number of rows @@ -491,7 +491,7 @@ def create_project(options, file_fullpath): response_body = response.read() response_json = json.loads(response_body) if 'total' in response_body and response_json['total'] > 0: - print 'Number of rows:', response_json['total'] + print('Number of rows:', response_json['total']) else: raise Exception('Project contains 0 rows. Please check --help for mandatory arguments for xml, json, xls and ods')