mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
sync_struct: docstring cleanup
This commit is contained in:
parent
84e7f55df3
commit
1edeb5a13f
@ -150,9 +150,7 @@ class Notifier:
|
||||
# All modifications must go through them!
|
||||
|
||||
def append(self, x):
|
||||
"""Append to a list.
|
||||
|
||||
"""
|
||||
"""Append to a list."""
|
||||
self._backing_struct.append(x)
|
||||
if self.root.publish is not None:
|
||||
self.root.publish({"action": "append",
|
||||
@ -160,9 +158,7 @@ class Notifier:
|
||||
"x": x})
|
||||
|
||||
def insert(self, i, x):
|
||||
"""Insert an element into a list.
|
||||
|
||||
"""
|
||||
"""Insert an element into a list."""
|
||||
self._backing_struct.insert(i, x)
|
||||
if self.root.publish is not None:
|
||||
self.root.publish({"action": "insert",
|
||||
@ -172,9 +168,7 @@ class Notifier:
|
||||
def pop(self, i=-1):
|
||||
"""Pop an element from a list. The returned element is not
|
||||
encapsulated in a ``Notifier`` and its mutations are no longer
|
||||
tracked.
|
||||
|
||||
"""
|
||||
tracked."""
|
||||
r = self._backing_struct.pop(i)
|
||||
if self.root.publish is not None:
|
||||
self.root.publish({"action": "pop",
|
||||
|
Loading…
Reference in New Issue
Block a user