Skip to content

Commit 9341356

Browse files
authored
use raw string literal (#316)
addresses `DeprecationWarning: invalid escape sequence \w`
1 parent 1a1d22d commit 9341356

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyntcloud/io/pcd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def parse_header(lines):
2323
for ln in lines:
2424
if ln.startswith('#') or len(ln) < 2:
2525
continue
26-
match = re.match('(\w+)\s+([\w\s\.]+)', ln)
26+
match = re.match(r'(\w+)\s+([\w\s\.]+)', ln)
2727
if not match:
2828
warnings.warn("warning: can't understand line: %s" % ln)
2929
continue

0 commit comments

Comments
 (0)