Skip to content

Commit

Permalink
fix python3 bytes string
Browse files Browse the repository at this point in the history
  • Loading branch information
deltaclock committed Aug 25, 2019
1 parent 599365e commit 5ba3fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rex/text/lang.rb
Expand Up @@ -63,7 +63,7 @@ def self.to_perl(str, wrap = DefaultWrap, name = "buf")
# Converts a raw string into a python buffer
#
def self.to_python(str, wrap = DefaultWrap, name = "buf")
return hexify(str, wrap, "#{name} += \"", '"', "#{name} = \"\"\n", '"')
return hexify(str, wrap, "#{name} += b\"", '"', "#{name} = b\"\"\n", '"')
end

#
Expand Down

0 comments on commit 5ba3fa3

Please sign in to comment.