Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/267003

Change subject: Use common copyright string, keep lines beneath 80 chars
......................................................................

Use common copyright string, keep lines beneath 80 chars

Change-Id: Iede65d5d893499a74ac49911c7d9383adbf07919
---
M pywikibot/comms/rcstream.py
1 file changed, 20 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/03/267003/1

diff --git a/pywikibot/comms/rcstream.py b/pywikibot/comms/rcstream.py
index 95056fd..bead5ee 100644
--- a/pywikibot/comms/rcstream.py
+++ b/pywikibot/comms/rcstream.py
@@ -2,14 +2,21 @@
 """
 SocketIO-based rcstream client.
 
-(c) 2014 Merlijn van Deen
 
-This file is part of the Pywikibot framework, and is licensed under the MIT 
license.
+This file is part of the Pywikibot framework.
 
 This module requires socketIO_client to be installed:
     pip install socketIO_client
 """
 from __future__ import absolute_import, unicode_literals
+#
+# (C) 2014 Merlijn van Deen
+# (C) Pywikibot team, 2015-2016
+#
+# Distributed under the terms of the MIT license.
+#
+
+__version__ = '$Id$'
 
 import sys
 import threading
@@ -62,7 +69,7 @@
      'server_url': 'http://en.wikipedia.org', 'id': 703158386,
      'revision': {'new': 640271171, 'old': 468264850},
      'type': 'edit', 'namespace': 0}
-    >>> t.stop()  # optional, the thread will shut down on exiting python as 
well
+    >>> t.stop()  # optional, the thread will shut down on exiting python
     """
 
     def __init__(self, wikihost, rchost, rcport=80, rcpath='/rc', total=None):
@@ -132,7 +139,11 @@
         )
 
     def run(self):
-        """Threaded function. Runs insided the thread when started with 
.start()."""
+        """
+        Threaded function.
+
+        Runs insided the thread when started with .start().
+        """
         self.running = True
         while self.running:
             self.client.wait(seconds=0.1)
@@ -160,15 +171,15 @@
     @param total: the maximum number of entries to return. The underlying 
thread
                   is shut down then this number is reached.
 
-    @yields dict: dict as formatted by MediaWiki's 
MachineReadableRCFeedFormatter[1],
-                  which consists of at least id (recent changes id), type 
('edit',
-                  'new', 'log' or 'external'), namespace, title, comment, 
timestamp,
-                  user and bot (bot flag for the change). See [1] for more 
details.
+    @yields dict: dict as formatted by MediaWiki's
+        MachineReadableRCFeedFormatter[1], which consists of at least id
+        (recent changes id), type ('edit', 'new', 'log' or 'external'),
+        namespace, title, comment, timestamp, user and bot (bot flag for the
+        change). See [1] for more details.
 
     @raises ImportError
 
     [1]: See mediawiki/includes/rcfeed/MachineReadableRCFeedFormatter.php
-
     """
     if isinstance(socketIO_client, Exception):
         raise ImportError('socketIO_client is required for the rc stream; '

-- 
To view, visit https://gerrit.wikimedia.org/r/267003
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iede65d5d893499a74ac49911c7d9383adbf07919
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <i...@gno.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to