title: Python error: "expected an indented block"
body: <p>I've got the "usual" expected an indented block. All the indentations are right. I've open my script in various editors and there is no issue abt missalignments, or hiden whitespaces caused by tabs.</p>
  
  <p>Would really appreciate if anyone could shed some light on this issue.</p>
  
  <h2>This is the part of the script causing problems:</h2>
  
  <pre><code>def findCSVs():
  '''
  looks into a 'tocom_data' subdirectory, finds 'tocomxxx.csv' files,
  retuns a sorted list of filenames that conform: begins with TOCOM, ends in .csv
  '''
      csvlist = []
      datadir=os.path.join('.','tocom_data')
      flist = os.listdir(datadir)
      for fname in flist:
          fsplit = fname.split('.')
          if len(fsplit)&gt;1:
              if fsplit[1]=="csv" and fname[0:5]=="TOCOM":
                  completeFname= os.path.join(datadir,fname)
                  csvlist.append(completeFname)
                  csvlist.sort()
      return csvlist
  </code></pre>
  
  <hr>
  
  <p>Python expects an indented block at the line <code>if len(fsplit)&gt;1:</code></p>
  
  <p>Much appreciated</p>
  
  <p>Jose</p>