@@ -35,15 +35,15 @@ def find_pound_define (line):
return ""
def is_pound_if (line):
- inc = re.findall ("^\s*#\s*if\s", line)
+ inc = re.findall (r"^\s*#\s*if\s", line)
if not inc:
- inc = re.findall ("^\s*#\s*if[n]?def\s", line)
+ inc = re.findall (r"^\s*#\s*if[n]?def\s", line)
if inc:
return True
return False
def is_pound_endif (line):
- inc = re.findall ("^\s*#\s*endif", line)
+ inc = re.findall (r"^\s*#\s*endif", line)
if inc:
return True
return False
@@ -61,10 +61,10 @@ if len(src) == 0:
if not usage:
if scanfiles:
if process_h:
- file_list = find_gcc_files ("\*.h", current, deeper)
+ file_list = find_gcc_files (r"\*.h", current, deeper)
if process_c:
- file_list = file_list + find_gcc_files ("\*.c", current, deeper)
- file_list = file_list + find_gcc_files ("\*.cc", current, deeper)
+ file_list = file_list + find_gcc_files (r"\*.c", current, deeper)
+ file_list = file_list + find_gcc_files (r"\*.cc", current, deeper)
else:
newlist = list()
for x in file_list: