Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3780
Modified Files:
misc.py
Log Message:
remove unneeded get_name function
Index: misc.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/misc.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** misc.py 29 Oct 2004 18:10:05 -0000 1.49
--- misc.py 10 Apr 2005 18:04:47 -0000 1.50
***************
*** 137,142 ****
- FILENAME_REGEXP = re.compile("^(.*?)_(.)(.*)$")
-
def getimage(base, default=None):
"""
--- 137,140 ----
***************
*** 151,183 ****
- def getname(file, skip_ext=True):
- """
- make a nicer display name from file
- """
- if len(file) < 2:
- return Unicode(file)
-
- # basename without ext
- if file.rfind('/') < file.rfind('.') and skip_ext:
- name = file[file.rfind('/')+1:file.rfind('.')]
- else:
- name = file[file.rfind('/')+1:]
- if not name:
- # Strange, it is a dot file, return the complete
- # filename, I don't know what to do here. This should
- # never happen
- return Unicode(file)
-
- name = name[0].upper() + name[1:]
-
- while file.find('_') > 0 and FILENAME_REGEXP.match(name):
- m = FILENAME_REGEXP.match(name)
- if m:
- name = m.group(1) + ' ' + m.group(2).upper() + m.group(3)
- if name.endswith('_'):
- name = name[:-1]
- return Unicode(name)
-
-
def smartsort(x,y):
"""
--- 149,152 ----
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog