style: Start applying PEP8 to Python files, indentation issues

Done with `autopep8 --select=E1`, fixes:

- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
This commit is contained in:
Rémi Verschelde 2016-11-02 22:26:55 +01:00
parent 7c92b401f1
commit 561c1f17a1
84 changed files with 6637 additions and 6637 deletions

View file

@ -34,39 +34,39 @@ f = open("files","rb")
fname = f.readline()
while (fname!=""):
fr = open(fname.strip(),"rb")
l = fr.readline()
bc=False
fsingle = fname.strip()
fr = open(fname.strip(),"rb")
l = fr.readline()
bc=False
fsingle = fname.strip()
if (fsingle.find("/")!=-1):
fsingle=fsingle[fsingle.rfind("/")+1:]
rep_fl="$filename"
rep_fi=fsingle
len_fl=len(rep_fl)
len_fi=len(rep_fi)
if (len_fi<len_fl):
for x in range(len_fl-len_fi):
rep_fi+=" "
elif (len_fl<len_fi):
for x in range(len_fi-len_fl):
rep_fl+=" "
if (header.find(rep_fl)!=-1):
text=header.replace(rep_fl,rep_fi)
else:
text=header.replace("$filename",fsingle)
if (fsingle.find("/")!=-1):
fsingle=fsingle[fsingle.rfind("/")+1:]
rep_fl="$filename"
rep_fi=fsingle
len_fl=len(rep_fl)
len_fi=len(rep_fi)
if (len_fi<len_fl):
for x in range(len_fl-len_fi):
rep_fi+=" "
elif (len_fl<len_fi):
for x in range(len_fi-len_fl):
rep_fl+=" "
if (header.find(rep_fl)!=-1):
text=header.replace(rep_fl,rep_fi)
else:
text=header.replace("$filename",fsingle)
while (l!=""):
if ((l.find("//")!=0 and l.find("/*")!=0 and l.strip()!="") or bc):
text+=l
bc=True
l=fr.readline()
while (l!=""):
if ((l.find("//")!=0 and l.find("/*")!=0 and l.strip()!="") or bc):
text+=l
bc=True
l=fr.readline()
fr.close()
fr=open(fname.strip(),"wb")
fr.write(text)
fr.close()
#print(text)
fname=f.readline()
fr.close()
fr=open(fname.strip(),"wb")
fr.write(text)
fr.close()
#print(text)
fname=f.readline()