Skip to content

Commit

Permalink
Fix couple more SyntaxWarnings from non-raw string escape-lookalikes
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-fg committed May 10, 2024
1 parent 48b4dcc commit 042409d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desktop/alarm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def main(args=None):
import argparse
parser = argparse.ArgumentParser(
description='Send notification at a certain future point in time.',
epilog='Sending SIGQUIT (Ctrl+\ [Ctrl + backslash] from'
epilog=r'Sending SIGQUIT (Ctrl+\ [Ctrl + backslash] from'
' terminal) to the process will print time left until notification to stdout.')

parser.add_argument('time', nargs='?',
Expand Down
2 changes: 1 addition & 1 deletion dev/markdown-checks
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def md_check_quirks(md_lines, errs):
if line.strip().startswith(r'\['):
# \[stuff\] at BOL translates into centered "stuff" line on codeberg
errs.append(adict( n=n, t='quirks',
s=f'Line starting with \[ can turn into some weird centered-text thing' ))
s=fr'Line starting with \[ can turn into some weird centered-text thing' ))


def md_check_header_anchors(md_lines, errs, name_max_len=40):
Expand Down

0 comments on commit 042409d

Please sign in to comment.