webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions | Variables
webkitpy.thirdparty.mod_pywebsocket.util Namespace Reference

Classes

class  _Deflater
 
class  _Inflater
 
class  _RFC1979Deflater
 
class  _RFC1979Inflater
 
class  DeflateSocket
 
class  NoopMasker
 
class  RepeatedXorMasker
 

Functions

def get_stack_trace ()
 
def prepend_message_to_exception (message, exc)
 
def get_script_interp (script_path, cygwin_path=None)
 
def wrap_popen3_for_win (cygwin_path)
 
def hexify (s)
 
def get_class_logger (o)
 

Variables

 md5_hash
 
 sha1_hash
 

Function Documentation

◆ get_class_logger()

def webkitpy.thirdparty.mod_pywebsocket.util.get_class_logger (   o)

◆ get_script_interp()

def webkitpy.thirdparty.mod_pywebsocket.util.get_script_interp (   script_path,
  cygwin_path = None 
)
Gets #!-interpreter command line from the script.

It also fixes command path.  When Cygwin Python is used, e.g. in WebKit,
it could run "/usr/bin/perl -wT hello.pl".
When Win32 Python is used, e.g. in Chromium, it couldn't.  So, fix
"/usr/bin/perl" to "<cygwin_path>\perl.exe".

Args:
  script_path: pathname of the script
  cygwin_path: directory name of cygwin binary, or None
Returns:
  #!-interpreter command line, or None if it is not #!-script.

◆ get_stack_trace()

def webkitpy.thirdparty.mod_pywebsocket.util.get_stack_trace ( )
Get the current stack trace as string.

This is needed to support Python 2.3.
TODO: Remove this when we only support Python 2.4 and above.
      Use traceback.format_exc instead.

◆ hexify()

def webkitpy.thirdparty.mod_pywebsocket.util.hexify (   s)

◆ prepend_message_to_exception()

def webkitpy.thirdparty.mod_pywebsocket.util.prepend_message_to_exception (   message,
  exc 
)
Prepend message to the exception.

◆ wrap_popen3_for_win()

def webkitpy.thirdparty.mod_pywebsocket.util.wrap_popen3_for_win (   cygwin_path)
Wrap popen3 to support #!-script on Windows.

Args:
  cygwin_path:  path for cygwin binary if command path is needed to be
                translated.  None if no translation required.

Variable Documentation

◆ md5_hash

webkitpy.thirdparty.mod_pywebsocket.util.md5_hash

◆ sha1_hash

webkitpy.thirdparty.mod_pywebsocket.util.sha1_hash