Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Replace literal tests by equal tests. #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sumatra/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def add_comment(self, label, comment, replace=False):
record = self.record_store.get(self.name, label)
except Exception as e:
raise Exception("%s. label=<%s>" % (e, label))
if replace or record.outcome is "":
if replace or record.outcome == "":
record.outcome = comment
else:
record.outcome = record.outcome + "\n" + comment
Expand Down
2 changes: 1 addition & 1 deletion sumatra/versioncontrol/_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def current_version(self):

def use_version(self, version):
logger.debug("Using git version: %s" % version)
if version is not 'master':
if version != 'master':
assert not self.has_changed()
g = git.Git(self.path)
g.checkout(version)
Expand Down