def setproctitle(text):
    """
    This is a wrapper for setproctitle.setproctitle().  The call sets
    'text' as the new process title and returns the previous value.

    The module is commonly not installed.  If missing, nothing is changed,
    and the call returns None.

    The module is described here: https://pypi.python.org/pypi/setproctitle
"""
    try:
        import setproctitle
    except Exception as e:
        return None
    else:                                                                                       # pragma: no cover
        prev = setproctitle.getproctitle()
        setproctitle.setproctitle(text)
        return prev
def setproctitle ( text ) : try : import setproctitle except Exception as e : return None else : prev = setproctitle . getproctitle ( ) setproctitle . setproctitle ( text ) return prev
This is a wrapper for setproctitle.setproctitle().  The call sets
    'text' as the new process title and returns the previous value.

    The module is commonly not installed.  If missing, nothing is changed,
    and the call returns None.

    The module is described here: https://pypi.python.org/pypi/setproctitle