From 1af978fa753fcea7e3aba98340d8d5724ffa2188 Mon Sep 17 00:00:00 2001 From: Ty <60036684+TyGillespie@users.noreply.github.com> Date: Sat, 6 Feb 2021 08:07:25 -0700 Subject: [PATCH] Slight formatting updates. --- keyboard_handler/linux.py | 6 +++--- setup.py | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/keyboard_handler/linux.py b/keyboard_handler/linux.py index 78ec7c0..1c2aa2f 100644 --- a/keyboard_handler/linux.py +++ b/keyboard_handler/linux.py @@ -6,7 +6,7 @@ def parse(s): """parse a string like control+f into (modifier, key). -Unknown modifiers will return ValueError.""" + Unknown modifiers will return ValueError.""" m = 0 lst = s.split("+") if not len(lst): @@ -59,8 +59,8 @@ def __init__(self, *args, **kwargs): def register_key(self, key, function): """key will be a string, such as control+shift+f. -We need to convert that, using parse_key, -into modifier and key to put into our dictionary.""" + We need to convert that, using parse_key, + into modifier and key to put into our dictionary.""" # register key so we know if we have it on event receive. t = parse(key) keys[t] = function diff --git a/setup.py b/setup.py index c018e0d..d1cbc6c 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,19 @@ from setuptools import setup, find_packages + __version__ = 0.52 + setup( - name="Keyboard_Handler", + name="keyboard_handler", version=__version__, description="Hook global and local keystrokes on multiple platforms", author="Christopher Toth", packages=find_packages(), extras_require={ - ':sys_platform == "win32"': ["pywin32",], + ':sys_platform == "win32"': [ + "pywin32", + ], }, classifiers=[ "Development Status :: 4 - Beta",