Skip to content

Commit 0a4d346

Browse files
committed
flake
1 parent 44eea5f commit 0a4d346

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pretext/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from pydantic import ValidationError
1717
from typing import Any, Callable, List, Literal, Optional
1818
from functools import update_wrapper
19+
import importlib.util
1920

2021

2122
from . import (
@@ -196,8 +197,6 @@ def upgrade() -> None:
196197
Upgrade PreTeXt-CLI to the latest version using pip.
197198
"""
198199
extras = []
199-
import importlib.util
200-
201200
if importlib.util.find_spec("prefig") is not None:
202201
log.debug(
203202
"The 'prefig' package is installed; will attempt to upgrade it as well."

0 commit comments

Comments
 (0)