Skip to content

Commit

Permalink
forensics/mxvmem: strings in regexes may need the 'raw' modifier
Browse files Browse the repository at this point in the history
Without r'...', one will get a warning about \d and so on.
Future versions will treat this as an error.
  • Loading branch information
thomas committed Feb 12, 2025
1 parent 4e4aeaa commit 69d8f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forensics/mxvmem
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ class ProcStreamParser():
'''
def __init__(self,procfshandler):
self.pfh = procfshandler
self.pidrex = re.compile('/proc/(\d+)/(\S+)\s+(.*)') # :xxx: hardcoded '/proc'
self.pidrex = re.compile(r'/proc/(\d+)/(\S+)\s+(.*)') # :xxx: hardcoded '/proc'

def parse(self, line):
m = self.pidrex.match(line)

0 comments on commit 69d8f8e

Please sign in to comment.