Esempio n. 1
0
 def port(self):
     """
     Provides port on-demand with caching
     """
     if not hasattr(self, '_port'):
         self._port = give_port()
     return self._port
Esempio n. 2
0
 def port(self):
     """
     Provides port on-demand with caching
     """
     if not hasattr(self, '_port'):
         self._port = give_port()
     return self._port