viewgit/index.php:465 Only variables should be passed by reference [2048]

viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # This is a simple whois daemon intended to
  5. # provide a basic whois for GNet.
  6. #
  7.  
  8. import pywhois
  9. from optparse import OptionParser
  10.  
  11. if __name__ == "__main__":
  12.  
  13. parser = OptionParser()
  14. parser.add_option("-v", "--verbose", action="store_true",
  15. default = False, help = "Print syslog to screen")
  16. parser.add_option("-c", "--config", dest="config_file",
  17. default="pywhoisd.conf",
  18. help = "Set config file", metavar="CONFIG_FILE")
  19.  
  20. (options, args) = parser.parse_args()
  21.  
  22. # Load configuration and create logger
  23. # istance
  24. config = pywhois.Config(options.config_file)
  25. logger = pywhois.Logger(options.verbose)
  26.  
  27. # Prepare the real server, listening to the whole world
  28. host, port = "0.0.0.0", 43
  29. server = pywhois.WhoisServer((host, port), logger, config)
  30. try:
  31. server.serve_forever()
  32. except KeyboardInterrupt:
  33. logger.Log ("pywhoisd daemon exiting now")
  34.  
  35.  
  36.