jnpr/space/rest.py
def _log_time(self, oper, url, response):
        """
        Log response time into profiling output file.
        """
        if self.profile_file is not None:
            url = re.sub(r'\d+', '{id}', url)
            url = re.sub(r',', '_', url)
            num_ms = response.elapsed.seconds * 1000 + \
                     old_div(response.elapsed.microseconds, 1000)
            print("%s, %s, %d, %d" % (oper, url, response.status_code,
                                      num_ms),
                  file=self.profile_file)

        Log response time into profiling output file.
        
Log response time into profiling output file.
Log response time into profiling output file .
def _log_time(self, oper, url, response):
        if self.profile_file is not None:
            url = re.sub(r'\d+', '{id}', url)
            url = re.sub(r',', '_', url)
            num_ms = response.elapsed.seconds * 1000 + \
                     old_div(response.elapsed.microseconds, 1000)
            print("%s, %s, %d, %d" % (oper, url, response.status_code,
                                      num_ms),
                  file=self.profile_file)
def _log_time ( self , oper , url , response ) : if self . profile_file is not None : url = re . sub ( r'\d+' , '{id}' , url ) url = re . sub ( r',' , '_' , url ) num_ms = response . elapsed . seconds * 1000 + old_div ( response . elapsed . microseconds , 1000 ) print ( "%s, %s, %d, %d" % ( oper , url , response . status_code , num_ms ) , file = self . profile_file )
Log response time into profiling output file.
Log response time into profiling output file .
"""
        Log response time into profiling output file.
        """
self
oper
url
response