parameters: (value)
return_statement: return c
docstring: Convert a binary value.
docstring_summary: Convert a binary value.
docstring_tokens: Convert a binary value .
function: def binaryformat(value):
      """Convert a binary value."""
  
      # Escape #^-\]
      # We include # in case we are using (?x)
      if value in (0x23, 0x55, 0x5c, 0x5d):
          c = "\\x%02x\\x%02x" % (0x5c, value)
      else:
          c = "\\x%02x" % value
      return c
function_tokens: def binaryformat ( value ) : # Escape #^-\] # We include # in case we are using (?x) if value in ( 0x23 , 0x55 , 0x5c , 0x5d ) : c = "\\x%02x\\x%02x" % ( 0x5c , value ) else : c = "\\x%02x" % value return c