Skip to content

Commit 233a7db

Browse files
committed
Added missing prefix 'r' (raw string) for regex
1 parent c28238a commit 233a7db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ecg/ecg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def print_info(self, interpretation):
419419
pat_bdate = ""
420420

421421
# Strip microseconds from acquisition date
422-
regexp = "\.\d+$"
422+
regexp = r"\.\d+$"
423423
acquisition_date_no_micro = re.sub(
424424
regexp, '', self.dicom.AcquisitionDateTime)
425425

0 commit comments

Comments
 (0)