def tryFileLoad(self, filename):
    with open( filename, "r" ) as fd:
      for line in fd:
        data = line.split();
        if len(data) != 2:
          print "pyrs.auth.Auth.tryFileLoad() Error Parsing Line: %s" % (line)
          continue;
        if data[0] == 'port':
          self.setPort(int(data[1]));
        elif data[0] == 'host':
          self.setHost(data[1]);
        elif data[0] == 'pwd':
          self.setPwd(data[1]);
        elif data[0] == 'user':
          self.setUser(data[1]);
        else:
          print (line) % "pyrs.auth.Auth.tryFileLoad() Error Parsing Line: %s"
  
      if not self.haveParams:
        print "pyrs.auth.Auth.tryFileLoad() Warning: Not enough to Auth User"
      else:
        print "pyrs.auth.Auth.tryFileLoad() Loaded Auth Parameters!"
      return;
    print "pyrs.auth.Auth.tryFileLoad() Couldn't open Auth file %s" % (filename);
dataset/ETHPy150Open drbob/pyrs/pyrs/test/auth.py/Auth.tryFileLoad/swapped operands of `%`