« Previous | Next » 

Revision bcf043c9

IDbcf043c95cb04277cf1f4577eea1cc64d8390b1d
Parent 07bd8a51
Child bdd55f71

Added by Iustin Pop about 15 years ago

Change resolved hostname from dict to a class

The current result of utils.LookupHostname() is a dict, but this does
not allow static checkers to check the correctness of the code. This
patch introduces a new class names HostInfo and changes LookupHostname
to return an instance of this class; this allows better checking of the
code (and also the code is cleaner).

Reviewed-by: ultrotter

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences