mirror of https://github.com/kivy/kivy.git
- made pre-commit hook python 3 compatable
- fixed indentation of docstring in animation.py
This commit is contained in:
parent
cb1bc016ea
commit
874a1d6986
|
@ -418,7 +418,7 @@ class Sequence(Animation):
|
||||||
self.dispatch('on_progress', widget, progress / 2.)
|
self.dispatch('on_progress', widget, progress / 2.)
|
||||||
|
|
||||||
def on_anim2_complete(self, instance, widget):
|
def on_anim2_complete(self, instance, widget):
|
||||||
'''Repeating logic used with boolean variable "repeat". Added version 1.7.1'''
|
'''Repeating logic used with boolean variable "repeat". Added version 1.7.1'''
|
||||||
if self.repeat == True:
|
if self.repeat == True:
|
||||||
self.anim1.start(widget)
|
self.anim1.start(widget)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -56,7 +56,7 @@ targets = []
|
||||||
for target in proc.stdout:
|
for target in proc.stdout:
|
||||||
parts = [p.strip() for p in target.split()]
|
parts = [p.strip() for p in target.split()]
|
||||||
if parts[0] != 'D':
|
if parts[0] != 'D':
|
||||||
targets.append(join(kivydir, target))
|
targets.append(join(kivydir, target.decode(encoding='UTF-8')))
|
||||||
|
|
||||||
# Untested possibility: After making the changes above for removing deleted
|
# Untested possibility: After making the changes above for removing deleted
|
||||||
# files from targets, saw also where the git diff call could be:
|
# files from targets, saw also where the git diff call could be:
|
||||||
|
@ -72,7 +72,7 @@ call(['git', 'stash', 'pop', '--quiet'])
|
||||||
|
|
||||||
if retval:
|
if retval:
|
||||||
# There are styleguide violations
|
# There are styleguide violations
|
||||||
print "Error:", retval, "styleguide violation(s) encountered!"
|
print("Error:", retval, "styleguide violation(s) encountered!")
|
||||||
print "Your commit has been aborted. Please fix the violations and retry."
|
print("Your commit has been aborted. Please fix the violations and retry.")
|
||||||
sys.exit(retval)
|
sys.exit(retval)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue