def tomindecstr(origin):
    """
    Convert [+/-]DDD.DDDDD to [+/-]DDD°MMM.MMMM'
    """

    degrees, minutes = tomindec(origin)
    return u'%d°%f\'' % (degrees, minutes)
def tomindecstr ( origin ) : degrees , minutes = tomindec ( origin ) return u'%d°%f\'' % ( degrees , minutes )
Convert [+/-]DDD.DDDDD to [+/-]DDD°MMM.MMMM'