Commit b42d638b authored by bliss administrator's avatar bliss administrator

[wip] reformating files

parent c14dcee0
......@@ -42,12 +42,15 @@ config example:
channel: W
"""
def _atomic_communication(fn):
def f(self,*args,**kwargs):
def f(self, *args, **kwargs):
with self._cnx.lock:
return fn(self,*args,**kwargs)
return fn(self, *args, **kwargs)
return f
class PI_HEXA(Controller):
COMMAND = enum.Enum("PI_HEXA.COMMAND", "POSITIONS MOVE_STATE MOVE_SEP INIT")
......@@ -193,6 +196,7 @@ class PI_HEXA(Controller):
answer = self.command(cmd, nb_line=6)
except:
import traceback
traceback.print_exc()
raise
positions = dict()
......
......@@ -79,7 +79,7 @@ class BlissRepl(PythonRepl):
def stop_current_task(self, block=True, exception=gevent.GreenletExit):
current_task = self.current_task
print('stop_current_task',current_task,block,exception)
print("stop_current_task", current_task, block, exception)
if current_task is not None:
current_task.kill(block=block, exception=exception)
......@@ -226,7 +226,7 @@ def embed(*args, **kwargs):
if stop_signals:
def stop_current_task(signum, frame, exception=gevent.GreenletExit):
print("stop_current_task",signum,frame,exception)
print("stop_current_task", signum, frame, exception)
repl = cmd_line_i.python_input
repl.stop_current_task(block=False, exception=exception)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment