meld r1172 - in trunk: . vc



Author: vincele
Date: Mon Feb 23 23:18:45 2009
New Revision: 1172
URL: http://svn.gnome.org/viewvc/meld?rev=1172&view=rev

Log:
Python does not need ';' end of line markers, remove statements that have no effects


Modified:
   trunk/filediff.py
   trunk/meldapp.py
   trunk/vc/monotone.py

Modified: trunk/filediff.py
==============================================================================
--- trunk/filediff.py	(original)
+++ trunk/filediff.py	Mon Feb 23 23:18:45 2009
@@ -272,7 +272,7 @@
         self.pixels_per_line = (metrics.get_ascent() + metrics.get_descent()) / 1024
         self.pango_char_width = metrics.get_approximate_char_width()
         tabs = pango.TabArray(10, 0)
-        tab_size = self.prefs.tab_size;
+        tab_size = self.prefs.tab_size
         for i in range(10):
             tabs.set_tab(i, pango.TAB_LEFT, i*tab_size*self.pango_char_width)
         for i in range(3):

Modified: trunk/meldapp.py
==============================================================================
--- trunk/meldapp.py	(original)
+++ trunk/meldapp.py	Mon Feb 23 23:18:45 2009
@@ -329,7 +329,7 @@
         # FIXME: ideally, we would use custom ellipsization that ellipsized the
         # two paths separately, but that requires significant changes to label
         # generation in many different parts of the code
-        label.set_ellipsize(pango.ELLIPSIZE_MIDDLE);
+        label.set_ellipsize(pango.ELLIPSIZE_MIDDLE)
         label.set_single_line_mode(True)
         label.set_alignment(0.0, 0.5)
         label.set_padding(0, 0)

Modified: trunk/vc/monotone.py
==============================================================================
--- trunk/vc/monotone.py	(original)
+++ trunk/vc/monotone.py	Mon Feb 23 23:18:45 2009
@@ -235,7 +235,7 @@
                 state = _vc.STATE_ERROR
                 print "WARNING: impossible state ('%s') reported by 'automate inventory' (version skew?)" % mstate
 
-            tree_state[os.path.join(self.root, fname)] = state;
+            tree_state[os.path.join(self.root, fname)] = state
 
         return tree_state
 



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