import re


def psfAscAdjust(str):
    """There are minor differences how the psf util handles floats, -0.0000 is
    shown as 0.0000 in Python. This function corrects for that.
    >>> psfAscAdjust("-0.00000")
    '0.00000'
    >>> psfAscAdjust("bla bla bla -0.00 0.00 -0.001 1.00000e-05")
    'bla bla bla 0.00 0.00 -0.001 1.00000e-05'
    """
    str = re.sub("-(0\.0*$)", '\\1', str)
    return re.sub("-(0\.0*\D)", '\\1', str)