Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Oct 12, 2018
1 parent fa6fe3b commit c11e030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tomlkit/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def __init__(self, _, trivia, raw): # type: (int, Trivia, str) -> None
self._raw = raw
self._sign = False

if re.match("^[+\-]\d+$", raw):
if re.match(r"^[+\-]\d+$", raw):
self._sign = True

@property
Expand Down Expand Up @@ -358,7 +358,7 @@ def __init__(self, _, trivia, raw): # type: (float, Trivia, str) -> None
self._raw = raw
self._sign = False

if re.match("^[+\-].+$", raw):
if re.match(r"^[+\-].+$", raw):
self._sign = True

@property
Expand Down

0 comments on commit c11e030

Please sign in to comment.