(pidfile:str) -> int | None Returns an int found in the named file, if there is one, and if there is a running process with that process id. Return None if no such process exists.
This makes sure any open ports are closed.
Does this by connecting to them until they give connection refused. Servers should call like:
import paste.script ensure_port_cleanup([80, 443])
File-like object that opens a file lazily when it is first written to.
This class contains 5 members.
See the source for more information.