can't run python script. error msg: TabError: inconsistent use of tabs and spaces in indentation already used 10 times autopep8 -i file.py
code:
def main():
# read_pdf( "docs/3.pdf" )
extanstions = {}
for root, dirs, files in os.walk('X:\backup'):
for _file in files:
extension = os.path.splitext(_file)[1]
extension = extension[1:]
try:
extanstions[extension] += 1
except:
extanstions[extension] = 1
print(os.path.join(root, _file) + " >> " + extension)
print(extanstions.keys())
return 0
main()