Fixbug salt line
This commit is contained in:
parent
ca6308cf21
commit
b4aae389b2
@ -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()
|
||||
|
2
setup.py
2
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',
|
||||
|
Loading…
Reference in New Issue
Block a user