meld r1214 - trunk/vc
- From: vincele svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1214 - trunk/vc
- Date: Tue, 3 Mar 2009 00:32:48 +0000 (UTC)
Author: vincele
Date: Tue Mar 3 00:32:48 2009
New Revision: 1214
URL: http://svn.gnome.org/viewvc/meld?rev=1214&view=rev
Log:
Use os.path.join() to manipulate pathes
Remove useless path manipulation.
Modified:
trunk/vc/_vc.py
Modified: trunk/vc/_vc.py
==============================================================================
--- trunk/vc/_vc.py (original)
+++ trunk/vc/_vc.py Tue Mar 3 00:32:48 2009
@@ -113,7 +113,6 @@
def listdir(self, start):
if start=="": start="."
- if start[-1] != "/": start+="/"
cfiles = []
cdirs = []
try:
@@ -122,7 +121,7 @@
except OSError:
entries = []
for f in self.listdir_filter(entries):
- fname = start + f
+ fname = os.path.join(start, f)
lname = fname
if os.path.isdir(fname):
cdirs.append( (f, lname) )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]