Better API for ICapPaste.new_paste
This commit is contained in:
parent
6c2d164883
commit
8af2674994
6 changed files with 11 additions and 13 deletions
|
|
@ -82,7 +82,7 @@ class Pastoob(ReplApplication):
|
|||
accepted_backends = [backend for backend in self.weboob.iter_backends()]
|
||||
backend = choice(accepted_backends)
|
||||
|
||||
p = backend.new_paste()
|
||||
p = backend.new_paste(_id=None)
|
||||
p.title = os.path.basename(filename)
|
||||
p.contents = contents
|
||||
backend.post_paste(p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue