bash - Previously working Python program reports in IndentationError when new variables are added -


i'm getting "indentation error: unexpected indent" in places don't think should getting them in.

here code reference, along detailed explanation below:

for pid in pid_book:     print "\n##############################\ntext!\n##############################\n"     ### comment ###     print "\n##### , more text #####\n"     # iterate through lines , add valid data lists     gap_count = 0     hr_temp_total = 0     same_hr_count = 0     cur_dt = time.time()     first_run = true     # keep track of month cool-looking progress bar     cur_month = 0 

above gap_count , cur_month new variables added. indentation error @ the line gap_count. if remove line, still same error @ declaration of cur_month. seems these new variables causing problems don't understand because these issues don't occur older variables , i've entered them same way same ide.

i've removed empty lines, , i've double checked ensure lf newlines not crlf.

this python 2.7 running in bash shell on centos. using atom edit.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -