Skip to content

Commit

Permalink
Updated "encode" signature to avoid PyLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Nov 11, 2016
1 parent 2704c93 commit bdb6eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pyqrcode_issue50.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class FakeString(str):
def __new__(cls, *args, **kw):
return str.__new__(cls, *args, **kw)

def encode(self, encoding, errors='strict'):
def encode(self, encoding=None, errors=None):
if encoding == 'shiftjis':
raise LookupError("unknown encoding: shiftjis")
return self.encode(encoding)
return self.encode(encoding, errors)


def test_constructing_without_shiftjis_encoding_available():
Expand Down

0 comments on commit bdb6eeb

Please sign in to comment.