meld r1292 - trunk



Author: vincele
Date: Thu Mar 26 21:23:52 2009
New Revision: 1292
URL: http://svn.gnome.org/viewvc/meld?rev=1292&view=rev

Log:
Put only one statement per line
Add a comment explaining the unreachable code
Silence pylint about that fact


Modified:
   trunk/filediff.py

Modified: trunk/filediff.py
==============================================================================
--- trunk/filediff.py	(original)
+++ trunk/filediff.py	Thu Mar 26 21:23:52 2009
@@ -199,7 +199,10 @@
             line_column = _("Ln %i, Col %i") % (it.get_line()+1, it.get_line_offset()+1)
             status = "%s : %s" % ( insert_overwrite, line_column )
             self.emit("status-changed", status  )
-            raise StopIteration; yield 0
+            raise StopIteration
+            # Unreachable code, used for the side-effect
+            # of making this function a generator
+            yield 0 # pylint: disable-msg=W0101
         self.scheduler.add_task( update().next )
 
     def on_textbuffer_mark_set(self, buffer, it, mark):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]