Skip to content

Commit

Permalink
Merge pull request #503 from aspidites/master
Browse files Browse the repository at this point in the history
a stylistic change, but i think it makes more sense
  • Loading branch information
tito committed Jun 11, 2012
2 parents d3018f3 + 3a3abaa commit 72451d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kivy/core/window/__init__.py
Expand Up @@ -760,7 +760,7 @@ def on_keyboard(self, key,
.. warning::
Some providers may omit `scancode`, `codepoint` and/or `modifier`!
'''
if kwargs.get('unicode'):
if 'unicode' in kwargs:
warn("The use of the unicode parameter is deprecated, and will be "
"removed in future versions. Use codepoint instead, which "
"has identical semantics.")
Expand All @@ -769,15 +769,15 @@ def on_keyboard(self, key,
def on_key_down(self, key,
scancode=None, codepoint=None, modifier=None, **kwargs):
'''Event called when a key is down (same arguments as on_keyboard)'''
if kwargs.get('unicode'):
if 'unicode' in kwargs:
warn("The use of the unicode parameter is deprecated, and will be "
"removed in future versions. Use codepoint instead, which "
"has identical semantics.")

def on_key_up(self, key,
scancode=None, codepoint=None, modifier=None, **kwargs):
'''Event called when a key is up (same arguments as on_keyboard)'''
if kwargs.get('unicode'):
if 'unicode' in kwargs:
warn("The use of the unicode parameter is deprecated, and will be "
"removed in future versions. Use codepoint instead, which "
"has identical semantics.")
Expand Down

0 comments on commit 72451d3

Please sign in to comment.