Fixbug salt line

This commit is contained in:
Andros Fenollosa 2019-01-14 17:08:30 +01:00
parent ca6308cf21
commit b4aae389b2
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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',