| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,7 @@ General information: | |||
| 10 | 10 | * Usage in combination with Python 2 has been deprecated. This does not mean that | |
| 11 | 11 | support is dropped instantly but rather that at some point in the future we will | |
| 12 | 12 | stop running our testcases against Python 2. | |
| 13 | + * The new pinnwand API is used for the pastebin functionality. | ||
| 13 | 14 | ||
| 14 | 15 | New features: | |
| 15 | 16 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,9 +50,7 @@ def paste(self, s): | |||
| 50 | 50 | url = urljoin(self.url, "/api/v1/paste") | |
| 51 | 51 | payload = { | |
| 52 | 52 | "expiry": self.expiry, | |
| 53 | - "files": [ | ||
| 54 | - {"lexer": "pycon", "content": s} | ||
| 55 | - ], | ||
| 53 | + "files": [{"lexer": "pycon", "content": s}], | ||
| 56 | 54 | } | |
| 57 | 55 | ||
| 58 | 56 | try: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -475,8 +475,7 @@ def __init__(self, interp, config): | |||
| 475 | 475 | self.paster = PasteHelper(self.config.pastebin_helper) | |
| 476 | 476 | else: | |
| 477 | 477 | self.paster = PastePinnwand( | |
| 478 | - self.config.pastebin_url, | ||
| 479 | - self.config.pastebin_expiry, | ||
| 478 | + self.config.pastebin_url, self.config.pastebin_expiry, | ||
| 480 | 479 | ) | |
| 481 | 480 | ||
| 482 | 481 | @property | |
| Back | FazBrowse Home | New Git URL |
0 commit comments