Skip to content

Commit

Permalink
mod: fixed codacy style complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Jan 2, 2023
1 parent 20d9bc1 commit 9b535f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/mod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class StaticField:
class MagicBytes(bytes):
offset: int = 0

def __new__(cls, value, offset: int=0):
def __new__(cls, value, offset: int = 0):
self = super().__new__(cls, value)
self.offset = offset
return self
Expand Down Expand Up @@ -130,7 +130,7 @@ def _write_file(self, f: RawIOBase, metadata: Metadata):
def _decode_text(self, data: bytes) -> str:
return data.decode(self._encoding, errors='replace').strip().strip('\0')

def _encode_text(self, text: str, length: int=None, fillchar: str=' ') -> bytes:
def _encode_text(self, text: str, length: int = None, fillchar: str = ' ') -> bytes:
if length:
text = text[:length].ljust(length, fillchar)
return asciipunct(text).encode(self._encoding, errors='replace')
Expand Down

0 comments on commit 9b535f5

Please sign in to comment.