From 443adfb43334b34220479c09dcbdf3d72187d84e Mon Sep 17 00:00:00 2001 From: Stanislav Kudriashev Date: Fri, 28 Feb 2014 18:01:28 +0200 Subject: [PATCH] Clean-up several comments in reflection.py Change-Id: I98756b4eb180f40a9f75511399f9821fd19fac8f --- taskflow/utils/reflection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/taskflow/utils/reflection.py b/taskflow/utils/reflection.py index 5e6e8a6fd..824352a82 100644 --- a/taskflow/utils/reflection.py +++ b/taskflow/utils/reflection.py @@ -101,8 +101,8 @@ def is_same_callback(callback1, callback2, strict=True): if callback1 == callback2: if not strict: return True - # If two bound method are equal if functions themselves are equal - # and objects they are applied to are equal. This means that a bound + # Two bound methods are equal if functions themselves are equal and + # objects they are applied to are equal. This means that a bound # method could be the same bound method on another object if the # objects have __eq__ methods that return true (when in fact it is a # different bound method). Python u so crazy! @@ -116,7 +116,7 @@ def is_same_callback(callback1, callback2, strict=True): def is_bound_method(method): - """Returns if the method given is a bound to a object or not.""" + """Returns if the given method is bound to an object.""" return bool(get_method_self(method))