Skip to content

Commit

Permalink
fix: quality violation
Browse files Browse the repository at this point in the history
  • Loading branch information
ziafazal committed Dec 26, 2023
1 parent 465d801 commit 2e64ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openedx_cmi5_xblock/openedx_cmi5_xblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,13 @@ def extract_zip_file(self, package_file):
self.storage.save(dest_path, ContentFile(cmi5_zipfile.read(zipinfo.filename)))

def save_xml_file(self, package_file):
"""Saves an XML file from the CMI5 package."""
"""Saves an XML file from the CMI5 package."""
self.xml_file_name = getattr(package_file, 'filename', package_file.name)
dest_path = os.path.join(self.extract_folder_path, self.xml_file_name)
self.storage.save(dest_path, ContentFile(package_file.read()))

def update_package_fields(self):
"""Update version and index page path fields."""
"""Update version and index page path fields."""
cmi5_path = self.find_file_path(self.xml_file_name)
cmi5_file = self.storage.open(cmi5_path)
tree = ET.parse(cmi5_file)
Expand Down

0 comments on commit 2e64ece

Please sign in to comment.