File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,12 +31,11 @@ def to_pdf(self, payload={}):
3131
3232 if self .addenda :
3333 addenda_content = self .addenda .get_file_content (self .addenda_replace_values )
34- print (addenda_content )
3534 payload ['addenda' ] = addenda_content
3635
3736 payload ['format' ] = 'pdf'
3837
39- result = self .service .cfdis_convert (file [" content" ], payload )
38+ result = self .service .cfdis_convert (file [' content' ], payload )
4039 self .pdf = Pdf (result )
4140
4241 return self .pdf
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ def from_string(self, file_content):
1515
1616 def get_file (self ):
1717 if self .file_content :
18- return {'content' : self .file_content }
18+ return { 'content' : self .file_content }
1919
2020 elif self .file_path :
2121 path = Path (self .file_path )
2222 if not path .exists () or not path .is_file ():
2323 raise FileNotFoundError (f"Failed to read XML content from file: { self .file_path } . The file does not exist." )
2424
2525 self .file_content = path .read_text ()
26- return {'content' : self .file_content }
26+ return { 'content' : self .file_content }
2727 else :
2828 raise ValueError (f"Failed to load file { self .__class__ .__name__ } , you must use from_file or from_string." )
2929
You can’t perform that action at this time.
0 commit comments