Skip to content

Commit

Permalink
Fix for python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuskarotkis committed Aug 26, 2021
1 parent 9e1c60a commit a3f6d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intelmq/bots/experts/cut_from_string/expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def process(self):
self.send_message(event)
self.acknowledge_message()

def removeprefix(self, field: str, prefix: str, /) -> str:
def removeprefix(self, field: str, prefix: str) -> str:
if field.startswith(prefix):
return field[len(prefix):]
else:
return field[:]

def removesuffix(self, field: str, suffix: str, /) -> str:
def removesuffix(self, field: str, suffix: str) -> str:
if suffix and field.endswith(suffix):
return field[:-len(suffix)]
else:
Expand Down

0 comments on commit a3f6d9b

Please sign in to comment.