Remove my_ip from generated wsgi script

The variable is not used by the generated script and the
socket calls will block in some contexts.

Change-Id: Id5f9c14e2bdda434883c24bb05359c0c36a1b569
This commit is contained in:
Chris Dent 2018-09-10 11:31:31 -06:00 committed by Stephen Finucane
parent 7b3e47736b
commit 126b7f7dec
1 changed files with 0 additions and 2 deletions

View File

@ -312,8 +312,6 @@ if __name__ == "__main__":
import sys
import wsgiref.simple_server as wss
my_ip = socket.gethostbyname(socket.gethostname())
parser = argparse.ArgumentParser(
description=%(import_target)s.__doc__,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,