http://isometri.cc/strips/gates_in_the_head

Function debug Undocumented
Class Process A process that integrates with the Twisted event loop.
Function _fsdecode Decode a string to a unicode representation, passing through existing unicode unchanged.
Class _Reaper Undocumented
Function _findShebang Look for a #! line, and return the value following the #! if one exists, or None if this file is not a script.
Function _invalidWin32App Determine if a pywintypes.error is telling us that the given process is 'not a valid win32 application', i.e. not a PE format executable.
@_replaceIf(_PY3, getattr(os, 'fsdecode', None))
def _fsdecode(x): (source)

Decode a string to a unicode representation, passing through existing unicode unchanged.

ParametersxThe string to be conditionally decoded. (type: bytes or unicode)
Returnsunicode
def debug(msg): (source)
Undocumented
def _findShebang(filename): (source)

Look for a #! line, and return the value following the #! if one exists, or None if this file is not a script.

I don't know if there are any conventions for quoting in Windows shebang lines, so this doesn't support any; therefore, you may not pass any arguments to scripts invoked as filters. That's probably wrong, so if somebody knows more about the cultural expectations on Windows, please feel free to fix.

This shebang line support was added in support of the CGI tests; appropriately enough, I determined that shebang lines are culturally accepted in the Windows world through this page:

   http://www.cgi101.com/learn/connect/winxp.html
Parametersfilenamestr representing a filename
Returnsa str representing another filename.
def _invalidWin32App(pywinerr): (source)

Determine if a pywintypes.error is telling us that the given process is 'not a valid win32 application', i.e. not a PE format executable.

Parameterspywinerra pywintypes.error instance raised by CreateProcess
Returnsa boolean
API Documentation for Twisted, generated by pydoctor at 2018-10-15 19:29:43.