Method: Rex::Text.to_python
- Defined in:
- lib/rex/text/lang.rb
.to_python(str, wrap = DefaultWrap, name = "buf") ⇒ Object
Converts a raw string into a python buffer
123 124 125 |
# File 'lib/rex/text/lang.rb', line 123 def self.to_python(str, wrap = DefaultWrap, name = "buf") return hexify(str, wrap, "#{name} += b\"", '"', "#{name} = b\"\"\n", '"') end |