import os
from fnmatch import fnmatch
root = 'Directory'
for path, subdirs, file in os.walk(root):
for files in file :
with open(files) as f:
contents = f.read()
if 'Search_string' in contents:
print os.path.join(path, files)
It is giving me below error :
for files in file :
^
IndentationError: expected an indented block
Please help.