Skip to content

Commit

Permalink
correct linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iulusoy committed Jan 7, 2025
1 parent ea19b97 commit 1feb4cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mailcom/inout.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def list_of_files(self):
]
if len(self.email_list) == 0:
raise ValueError(
"The directory {} does not contain .eml or .html files. Please check that the directory is containing the email data files".format(
"""The directory {} does not contain .eml or .html files.
Please check that the directory is containing the email
data files""".format(
mypath
)
)
Expand Down Expand Up @@ -81,7 +83,9 @@ def validate_data(self):
pass

def data_to_xml(self, text):
my_item_func = lambda x: "content"
def my_item_func(x):
return "content"

xml = dicttoxml(text, custom_root="email", item_func=my_item_func)
return xml.decode()

Expand Down

0 comments on commit 1feb4cf

Please sign in to comment.