From 4907991ea39ccb79a76129bc1571879a64dce1b8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 17 Jul 2015 18:53:43 +0200 Subject: [PATCH] sync_struct: docstring cleanup --- artiq/protocols/sync_struct.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/artiq/protocols/sync_struct.py b/artiq/protocols/sync_struct.py index dfd3a10b5..e8fd2c69d 100644 --- a/artiq/protocols/sync_struct.py +++ b/artiq/protocols/sync_struct.py @@ -8,7 +8,6 @@ describing each modification made to the structure (*mods*). Structures must be PYON serializable and contain only lists, dicts, and immutable types. Lists and dicts can be nested arbitrarily. - """ import asyncio @@ -23,9 +22,7 @@ _init_string = b"ARTIQ sync_struct\n" def process_mod(target, mod): - """Apply a *mod* to the target, mutating it. - - """ + """Apply a *mod* to the target, mutating it.""" for key in mod["path"]: target = getitem(target, key) action = mod["action"] @@ -134,7 +131,6 @@ class Notifier: :param backing_struct: Structure to encapsulate. For convenience, it also becomes available as the ``read`` property of the ``Notifier``. - """ def __init__(self, backing_struct, root=None, path=[]): self.read = backing_struct @@ -203,7 +199,6 @@ class Publisher(AsyncioServer): :param notifiers: A dictionary containing the notifiers to associate with the ``Publisher``. The keys of the dictionary are the names of the notifiers to be used with ``Subscriber``. - """ def __init__(self, notifiers): AsyncioServer.__init__(self)