diff --git a/devsupApp/src/devsup/db.py b/devsupApp/src/devsup/db.py index b0a5605..49ea01f 100644 --- a/devsupApp/src/devsup/db.py +++ b/devsupApp/src/devsup/db.py @@ -1,3 +1,4 @@ +from __future__ import print_function import threading, sys, traceback, time diff --git a/devsupApp/src/devsup/dset.py b/devsupApp/src/devsup/dset.py index 7680684..5a587d1 100644 --- a/devsupApp/src/devsup/dset.py +++ b/devsupApp/src/devsup/dset.py @@ -3,6 +3,8 @@ Some general purpose device supports """ +from __future__ import print_function + import logging _log = logging.getLogger(__name__) @@ -49,9 +51,9 @@ class AsyncOffload(object): @initHook('AtIocExit') def _exit(): - print 'stop worker for', rec.NAME + print('stop worker for', rec.NAME) self.worker.join() - + self.worker.start() assert self.worker is not None, "Offload requires a worker thread" diff --git a/devsupApp/src/devsup/hooks.py b/devsupApp/src/devsup/hooks.py index c9a4a6e..345a145 100644 --- a/devsupApp/src/devsup/hooks.py +++ b/devsupApp/src/devsup/hooks.py @@ -27,7 +27,7 @@ def addHook(state, func): which they were added (except for 'AtIocExit'). >>> def show(): - ... print 'State Occurred' + ... print('State Occurred') >>> addHook("AfterIocRunning", show) An additional special hook 'AtIocExit' may be used diff --git a/devsupApp/src/devsup/ptable.py b/devsupApp/src/devsup/ptable.py index 0c8ba76..365cb91 100644 --- a/devsupApp/src/devsup/ptable.py +++ b/devsupApp/src/devsup/ptable.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import print_function + import logging LOG = logging.getLogger(__name__)