[PATCH] Remove unused variable by using basename() instead of split()
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list gnome org
- Subject: [PATCH] Remove unused variable by using basename() instead of split()
- Date: Thu, 26 Feb 2009 21:51:58 +0100
We don't need 'leading', so just use os.path.basename()
--
Vincent Legoll
Index: dirdiff.py
===================================================================
--- dirdiff.py (révision 1182)
+++ dirdiff.py (copie de travail)
@@ -1013,7 +1013,7 @@
for component in changed:
child = model.iter_children( it )
while child:
- leading, name = os.path.split( model.value_path(child, pane) )
+ name = os.path.basename(model.value_path(child, pane))
if component == name : # found it
it = child
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]