Skip to content

Commit

Permalink
Fix deprecation warnings in labm8.
Browse files Browse the repository at this point in the history
Signed-off-by: format 2020.01.21 <github.com/ChrisCummins/format>
  • Loading branch information
ChrisCummins committed Jan 25, 2020
1 parent 089ec7f commit eec0f0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions labm8/py/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ def read(*components, **kwargs):

# Multiple definitions to handle all cases.
if ignore_comments:
comment_line_re = re.compile("^\s*{char}".format(char=comment_char))
not_comment_re = re.compile("[^{char}]+".format(char=comment_char))
comment_line_re = re.compile(r"^\s*{char}".format(char=comment_char))
not_comment_re = re.compile(r"[^{char}]+".format(char=comment_char))

if rstrip:
# Ignore comments, and right strip results.
Expand Down
2 changes: 1 addition & 1 deletion labm8/py/labtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import itertools
import sys
import typing
from collections import Mapping
from collections.abc import Mapping

from six import string_types

Expand Down

0 comments on commit eec0f0f

Please sign in to comment.