/[gentoo]/src/packages/mstring.py
Gentoo

Contents of /src/packages/mstring.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Thu Feb 19 01:49:53 2004 UTC (10 years, 9 months ago) by marduk
Branch point for: packages_g_o, MAIN
File MIME type: text/x-python
Initial revision

1 """marduk's helpin' heap 'o string functions"""
2
3
4 def replace_sub(s,new,start,end=None):
5 if end is None:
6 end = start
7 s2 = s[:start] + new + s[end + 1:]
8 newpos = start + len(new)
9
10 return (s2,newpos)

  ViewVC Help
Powered by ViewVC 1.1.20