Skip to content

Commit

Permalink
#72 tiny pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Feb 26, 2018
1 parent 4345408 commit e385cf7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/fparser/Fortran2003.py
Original file line number Diff line number Diff line change
Expand Up @@ -5350,20 +5350,21 @@ class Action_Term_Do_Construct(BlockBase): # R836
def match(reader):
return BlockBase.match(Label_Do_Stmt, [Execution_Part_Construct],
Do_Term_Action_Stmt, reader,
match_labels=True, enable_do_label_construct_hook=True)
match_labels=True,
enable_do_label_construct_hook=True)

def tofortran(self, tab='', isfix=None):
line = []
start = self.content[0]
end = self.content[-1]
extra_tab = ' '
line.append(start.tofortran(tab=tab,isfix=isfix))
line.append(start.tofortran(tab=tab, isfix=isfix))
for item in self.content[1:-1]:
line.append(item.tofortran(tab=tab+extra_tab,isfix=isfix))
line.append(item.tofortran(tab=tab+extra_tab, isfix=isfix))
if isinstance(item, Label_Do_Stmt):
extra_tab += ' '
if len(self.content)>1:
line.append(end.tofortran(tab=tab,isfix=isfix))
line.append(end.tofortran(tab=tab, isfix=isfix))
return '\n'.join(line)

class Do_Body(BlockBase): # R837
Expand Down

0 comments on commit e385cf7

Please sign in to comment.