From b4aae389b2eabf2680f7f938e3371917f076fcc7 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Mon, 14 Jan 2019 17:08:30 +0100 Subject: [PATCH] Fixbug salt line --- get_my_pastebin.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/get_my_pastebin.py b/get_my_pastebin.py index 57707d4..e639f29 100644 --- a/get_my_pastebin.py +++ b/get_my_pastebin.py @@ -16,7 +16,7 @@ API_RAW_PASTE_URL = 'https://pastebin.com/api/api_raw.php' @click.option('--password', required=True, help='Your password account') @click.argument('search') def main(api_key, username, password, search): - """Main application""" + """ Terminal application to find and copy your own Paste for Pastebin""" user_key = get_user_key(api_key, username, password) title = f'Results: {search}' options = get_list(api_key, user_key, search) @@ -95,10 +95,10 @@ def get_raw_paste(api_key, user_key, paste_key): } ).encode('ascii') response_paste = urllib.request.urlopen(url=API_RAW_PASTE_URL, data=post_data) - raw_paste = response_paste.read().decode("utf-8") + # Clear + raw_paste = response_paste.read().decode("utf-8").replace('\r', '') return raw_paste - if __name__ == '__main__': main() diff --git a/setup.py b/setup.py index 817a079..26879bc 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name = 'get-my-pastebin', py_modules=['get_my_pastebin'], - version = '1.0.11', + version = '1.0.12', python_requires='>3.6', description = 'Terminal application to find and copy your own Paste for Pastebin.', author = 'Andros Fenollosa',