Skip to content

Commit

Permalink
Merge pull request #2 from dongcarl/patch-1
Browse files Browse the repository at this point in the history
Don't use "is not" with a literal
  • Loading branch information
theuni authored Jun 17, 2020
2 parents 41bfaca + af0b8af commit 9840fbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extract_xcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ def __enter__(self):
self.fh = open(self.filename, self.mode)
return self
def __exit__(self, exc_type, exc_val, exc_tb):
if self.filename is not '-':
if self.filename != '-':
self.fh.close()
def write(self, bytes):
if self.filename is not '-':
if self.filename != '-':
return self.fh.write(bytes)
return self.fh.buffer.write(bytes)
def read(self, size):
if self.filename is not '-':
if self.filename != '-':
return self.fh.read(size)
return self.fh.buffer.read(size)
def seek(self, size):
Expand Down

0 comments on commit 9840fbf

Please sign in to comment.