@@ -501,7 +501,7 @@ def load_objects_from_file(objfilename, checktypes):
501501 #
502502 entries = typestr .split (',' );
503503 for entry in entries :
504- types [re .sub ('\s*=.*' , '' , entry ).lstrip ()] = True ;
504+ types [re .sub (r '\s*=.*' , '' , entry ).lstrip ()] = True ;
505505 entries = torque_typestr .split ('\\ ' )
506506 for entry in entries :
507507 name = re .sub (r' *V\(|\).*' , '' , entry )
@@ -514,7 +514,7 @@ def load_objects_from_file(objfilename, checktypes):
514514 start = entry .find ('(' );
515515 end = entry .find (')' , start );
516516 rest = entry [start + 1 : end ];
517- args = re .split ('\s*,\s*' , rest );
517+ args = re .split (r '\s*,\s*' , rest );
518518 typename = args [0 ]
519519 typeconst = args [1 ]
520520 types [typeconst ] = True
@@ -617,7 +617,7 @@ def parse_field(call):
617617 idx = call .find ('(' );
618618 kind = call [0 :idx ];
619619 rest = call [idx + 1 : len (call ) - 1 ];
620- args = re .split ('\s*,\s*' , rest );
620+ args = re .split (r '\s*,\s*' , rest );
621621
622622 consts = [];
623623
@@ -718,7 +718,7 @@ def emit_set(out, consts):
718718
719719 # Fix up overzealous parses. This could be done inside the
720720 # parsers but as there are several, it's easiest to do it here.
721- ws = re .compile ('\s+' )
721+ ws = re .compile (r '\s+' )
722722 for const in consts :
723723 name = ws .sub ('' , const ['name' ])
724724 value = ws .sub ('' , str (const ['value' ])) # Can be a number.
0 commit comments