Did I find the right examples for you? yes no

All Samples(59)  |  Call(59)  |  Derive(0)  |  Import(0)

src/c/l/clusterPy-0.9.9/clusterpy/core/inputs.py   clusterPy(Download)
            value = record[start: end]
            while value.find("  ") <> -1:
                value = value.replace("  ", " ")
            if value.startswith(" "):
                value = value[1:]

src/g/u/guts-0.2/src/guts.py   guts(Download)
            elif isinstance(val, str) or isinstance(val, unicode):
                val = val.rstrip('Z')
                val = val.replace('T', ' ')
                val = str_to_time(val)
 

src/i/n/intranet-HEAD/src/intranet3/intranet3/forms/times.py   intranet(Download)
 
        if not isinstance(data, float):
            data = data.replace(',', '.')
            try:
                data = float(data)

src/p/y/pynesim-0.2-dev/pyne/ensdf.py   pynesim(Download)
def _to_float(x):
    x = x.strip()
    x = x.replace('$', '')
    x = x.replace('?', '')
 

src/m/e/metrique-HEAD/src/metriqueu/metriqueu/utils.py   metrique(Download)
    if tz_aware:
        if isinstance(ts, datetime):
            ts.replace(tzinfo=pytz.utc)
            return ts
        else:

src/p/y/pyMoney-1.2.31/Money/Money.py   pyMoney(Download)
        if isinstance(amount, basestring):
            amount = amount.split(currency.getSymbol())[-1]
            amount = float(amount.replace(',',''))        
 
 

src/d/j/django-swiftbrowser-HEAD/swiftbrowser/templatetags/dateconv.py   django-swiftbrowser(Download)
def dateconv(value):
    try:
        value = datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
        value = value.replace(tzinfo=utc)
    except ValueError:

src/m/e/metrique-0.3.0-6a/metrique/utils.py   metrique(Download)
    if tz_aware:
        if isinstance(ts, datetime):
            ts.replace(tzinfo=UTC)
            return ts
        else:

src/m/e/metriqueu-0.2.7-1a/metriqueu/utils.py   metriqueu(Download)
    if tz_aware:
        if isinstance(ts, datetime):
            ts.replace(tzinfo=pytz.utc)
            return ts
        else:

src/c/a/calibre-HEAD/src/calibre/ebooks/pdf/render/from_html.py   calibre(Download)
            if height:
                try:
                    width = float(width.replace(',', '.'))
                    height = float(height.replace(',', '.'))
                except:

  1 | 2 | 3 | 4 | 5 | 6  Next