From d583b6116ab50a730a68405e078b06680266205f Mon Sep 17 00:00:00 2001
From: Christophe Dumez <christophe@nexedi.com>
Date: Fri, 12 May 2006 08:26:11 +0000
Subject: [PATCH] - use os.path.basename instead of doing it manually

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7230 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Subversion/Tool/SubversionTool.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py
index 5de89ed037..3273c0fc01 100644
--- a/product/ERP5Subversion/Tool/SubversionTool.py
+++ b/product/ERP5Subversion/Tool/SubversionTool.py
@@ -111,7 +111,7 @@ class File :
   def __init__(self, full_path, msg_status) :
     self.full_path = full_path
     self.msg_status = msg_status
-    self.name = full_path.split(os.sep)[-1]
+    self.name = os.path.basename(full_path)
 ## End of File Class
 
 class Dir :
@@ -119,7 +119,7 @@ class Dir :
   def __init__(self, full_path, msg_status) :
     self.full_path = full_path
     self.msg_status = msg_status
-    self.name = full_path.split(os.sep)[-1]
+    self.name = os.path.basename(full_path)
     self.sub_dirs = [] # list of sub directories
 
   # return a list of sub directories' names
-- 
2.30.9