]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Clarify comment in ioloop
authorBen Darnell <ben@bendarnell.com>
Fri, 1 Apr 2016 23:28:04 +0000 (19:28 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 1 Apr 2016 23:28:04 +0000 (19:28 -0400)
"update" could be read as meaning `dict.update`, so use "modify" instead. (the only actual modification is a removal in `remove_handler`)

tornado/ioloop.py

index c3aeced2afa31d565761b3af58278bc812c11105..04094c9661faf8803b4cd09fc0603fad1e977da5 100644 (file)
@@ -874,7 +874,7 @@ class PollIOLoop(IOLoop):
                 # Pop one fd at a time from the set of pending fds and run
                 # its handler. Since that handler may perform actions on
                 # other file descriptors, there may be reentrant calls to
-                # this IOLoop that update self._events
+                # this IOLoop that modify self._events
                 self._events.update(event_pairs)
                 while self._events:
                     fd, events = self._events.popitem()