@@ -329,7 +329,6 @@ def install_file_http(self, source, location=None):
329329 file_name = source .split (os .path .sep )
330330 file_name = file_name [- 2 ] if file_name [- 1 ] == "" else file_name [- 1 ]
331331
332- print (f"inside install_file_http location: '{ location } '" )
333332 if location is None :
334333 target = self .device_location + "/" + self .LIB_DIR_PATH + file_name
335334 else :
@@ -338,10 +337,7 @@ def install_file_http(self, source, location=None):
338337 auth = HTTPBasicAuth ("" , self .password )
339338
340339 with open (source , "rb" ) as fp :
341- print (f"upload file PUT URL: { target } " )
342340 r = self .session .put (target , fp .read (), auth = auth , timeout = self .timeout )
343- print (f"install_file_http response status: { r .status_code } " )
344- print (r .content )
345341 if r .status_code == 409 :
346342 _writeable_error ()
347343 r .raise_for_status ()
@@ -584,7 +580,6 @@ def upload_file(self, target_file, location_to_paste):
584580 :param location_to_paste: Location on the microcontroller to paste it.
585581 :return:
586582 """
587- print (f"inside upload_file location_to_paste: '{ location_to_paste } '" )
588583 if os .path .isdir (target_file ):
589584 create_directory_url = urljoin (
590585 self .device_location ,
@@ -698,7 +693,6 @@ def file_exists(self, filepath):
698693 return True if the file exists, otherwise False.
699694 """
700695 auth = HTTPBasicAuth ("" , self .password )
701- print (f"URL: { self .get_file_path (filepath )} " )
702696 resp = requests .get (
703697 self .get_file_path (filepath ), auth = auth , timeout = self .timeout
704698 )
@@ -809,7 +803,6 @@ def list_dir(self, dirpath):
809803 headers = {"Accept" : "application/json" },
810804 timeout = self .timeout ,
811805 ) as r :
812- print (r .content )
813806 return r .json ()["files" ]
814807
815808
0 commit comments