comparison sat/plugins/plugin_misc_nat-port.py @ 2765:378188abe941

misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 11:13:15 +0100
parents 56f94936df1e
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2764:92af49cde255 2765:378188abe941
103 103
104 @param local(bool): True to get external IP address, False to get local network one 104 @param local(bool): True to get external IP address, False to get local network one
105 @return (None, str): found IP address, or None of something got wrong 105 @return (None, str): found IP address, or None of something got wrong
106 """ 106 """
107 107
108 def getIP(dummy): 108 def getIP(__):
109 if self._upnp is None: 109 if self._upnp is None:
110 return None 110 return None
111 # lanaddr can be the empty string if not found, 111 # lanaddr can be the empty string if not found,
112 # we need to return None in this case 112 # we need to return None in this case
113 return (self._upnp.lanaddr or None) if local else self._external_ip 113 return (self._upnp.lanaddr or None) if local else self._external_ip