Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and jeertmans committed Mar 9, 2023
1 parent d24bc76 commit 370c953
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions manim_slides/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from pydantic import BaseModel, FilePath, PositiveInt, ValidationError
from tqdm import tqdm

from . import data
from .commons import folder_path_option, verbosity_option
from .config import PresentationConfig
from .logger import logger
from .present import get_scenes_presentation_config
from . import data


def open_with_default(file: Path):
Expand Down Expand Up @@ -334,11 +334,7 @@ def load_template(self) -> str:
if sys.version_info < (3, 9):
return resources.read_text(data, "revealjs_template.html")

return (
resources.files(data)
.joinpath("revealjs_template.html")
.read_text()
)
return resources.files(data).joinpath("revealjs_template.html").read_text()

def open(self, file: Path) -> bool:
return webbrowser.open(file.absolute().as_uri())
Expand Down

0 comments on commit 370c953

Please sign in to comment.