From: Fred L. D. <fd...@us...> - 2001-12-15 04:21:21
|
Update of /cvsroot/grail/grail/src/printing/fonts In directory usw-pr-cvs1:/tmp/cvs-serv2300/printing/fonts Modified Files: __init__.py Log Message: Avoid using the deprecated regsub module. Index: __init__.py =================================================================== RCS file: /cvsroot/grail/grail/src/printing/fonts/__init__.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** __init__.py 1999/03/05 22:02:39 1.6 --- __init__.py 2001/12/15 04:21:18 1.7 *************** *** 12,21 **** """ - import regsub - def font_from_name(psfontname): # PostScript fonts use dash delimiters, while Python module names # use underscores. ! modulename = 'PSFont_' + regsub.gsub('-', '_', psfontname) # no need to do any caching since the import mechanism does that # for us! --- 12,19 ---- """ def font_from_name(psfontname): # PostScript fonts use dash delimiters, while Python module names # use underscores. ! modulename = 'PSFont_' + psfontname.replace('-', '_') # no need to do any caching since the import mechanism does that # for us! |