code: def cleanup(temp_name):
      ''' Tries to remove temp files by filename wildcard path. '''
      for filename in iglob(temp_name + '*' if temp_name else temp_name):
          try:
              os.remove(filename)
          except OSError:
              pasf cleanup(temp_name):
      ''' Tries to remove temp files by filename wildcard path. '''
      for filename in iglob(temp_name + '*' if temp_name else temp_name):
          try:
              os.remove(filename)
          except OSError:
              pass
docs: Tries to remove temp files by filename wildcard path.