From e0543de8ef5c1f67d4064e84a5e7ecacbdf1029e Mon Sep 17 00:00:00 2001 From: MirceaDan Date: Sun, 2 Dec 2018 02:30:47 -0800 Subject: [PATCH] print is a function + header made print a function and added imports from future and encoding --- run | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run b/run index 1145a24fd..f36205125 100755 --- a/run +++ b/run @@ -1,4 +1,6 @@ #!/usr/bin/env python2 +# coding=utf-8 +from __future__ import absolute_import, division, print_function import os import sys @@ -8,12 +10,12 @@ basedir = os.path.dirname(os.path.realpath(__file__)) old = os.path.join(basedir, "octoprint") if os.path.exists(old): # rename left-overs from old file structure - print """ + print(""" Found left-overs from old file structure, renaming to "octoprint.backup". Please remove this manually (I don't dare to do so myself since you might have changes in there I don't know anything about). -""" +""") os.rename(old, os.path.join(basedir, "octoprint.backup")) sys.path.insert(0, os.path.join(basedir, "src"))