Skip to content

Commit

Permalink
Fix pep8 errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Nov 16, 2018
1 parent be1732f commit 832d424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AddCommand(BotCommand):
command = '/add'

def get_amount(self, content):
match = re.match('((/add )|(/remove ))?(?P<amount>\d+(\.\d+)?)( (?P<reason>.*))?', content)
match = re.match(r'((/add )|(/remove ))?(?P<amount>\d+(\.\d+)?)( (?P<reason>.*))?', content)
if not match:
raise CommandError()

Expand Down
2 changes: 1 addition & 1 deletion commands/last.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class LastCommand(BotCommand):
command = '/last'

def default(self, message):
match = re.match('(/last)( (?P<howmany>\d+))?', message.text)
match = re.match(r'(/last)( (?P<howmany>\d+))?', message.text)
howmany = int(match.groupdict(5)['howmany'])
tab = self._db.get_or_create_tab(message.chat.id)[0]
last_entries = u'\n'.join([
Expand Down

0 comments on commit 832d424

Please sign in to comment.