Skip to content

Commit 74fe1a9

Browse files
committed
Use the new pinnwand API.
1 parent ad855aa commit 74fe1a9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ General information:
1010
* Usage in combination with Python 2 has been deprecated. This does not mean that
1111
support is dropped instantly but rather that at some point in the future we will
1212
stop running our testcases against Python 2.
13+
* The new pinnwand API is used for the pastebin functionality.
1314

1415
New features:
1516

bpython/paste.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ def paste(self, s):
5050
url = urljoin(self.url, "/api/v1/paste")
5151
payload = {
5252
"expiry": self.expiry,
53-
"files": [
54-
{"lexer": "pycon", "content": s}
55-
],
53+
"files": [{"lexer": "pycon", "content": s}],
5654
}
5755

5856
try:

bpython/repl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ def __init__(self, interp, config):
475475
self.paster = PasteHelper(self.config.pastebin_helper)
476476
else:
477477
self.paster = PastePinnwand(
478-
self.config.pastebin_url,
479-
self.config.pastebin_expiry,
478+
self.config.pastebin_url, self.config.pastebin_expiry,
480479
)
481480

482481
@property

0 commit comments

Comments
 (0)