in py2 there was
rv = xmlrpc.pastes.newPaste(language, code, None, filename, mimetype, private)
I’m getting error : expected an object with the buffer interface
Can’t find any docs about xmlrpc and py3. I found only this snippet :
p1 = subprocess.Popen(['gpg','--clearsign'], stdin = subprocess.PIPE, stdout=subprocess.PIPE)
p1.stdin.write(bytes(input, 'UTF8'))
output = p1.communicate()[0]
s = ServerProxy('http://paste.pocoo.org/xmlrpc/')
pasteid = s.pastes.newPaste('text',output.decode())
print ("http://paste.pocoo.org/raw/",pasteid,"/", sep="")
but I’m still being confused about it… my version used many arguments, where can I find full description of it / fix for it ?
Thank you.
That error message usually means it’s looking for
str(which is Unicode in Python 3), notbytes. Like in the example, you’ll need to decode the argument which is in bytes. Maybe:But it’s hard to tell what the problem is without seeing your code.