# HG changeset patch # User Sean Farley # Date 1511825217 18000 # Node ID e31243879891a4c3008a6c6934a064448e083190 # Parent c66e920d261fa5884d8bae8372caab3de52d872b cleanup: use is not None instead of != diff -r c66e920d261f -r e31243879891 hggit/git_handler.py --- a/hggit/git_handler.py Mon Nov 27 18:25:44 2017 -0500 +++ b/hggit/git_handler.py Mon Nov 27 18:26:57 2017 -0500 @@ -681,7 +681,7 @@ if a: name = self.get_valid_git_username_email(a.group(1)) email = self.get_valid_git_username_email(a.group(2)) - if a.group(3) != None and len(a.group(3)) != 0: + if a.group(3) is not None and len(a.group(3)) != 0: name += ' ext:(' + urllib.quote(a.group(3)) + ')' author = '%s <%s>' \ % (self.get_valid_git_username_email(name),