|
23 | 23 | from __future__ import annotations
|
24 | 24 |
|
25 | 25 | from argparse import ArgumentParser, Namespace
|
26 |
| -from collections.abc import Sequence |
| 26 | +from collections.abc import Iterable, Sequence |
27 | 27 | from contextlib import suppress, contextmanager
|
28 | 28 | from dataclasses import dataclass
|
29 | 29 | import filecmp
|
|
42 | 42 | from pathlib import Path
|
43 | 43 | from string import Template
|
44 | 44 | from time import perf_counter, sleep
|
45 |
| -from typing import Iterable, Literal |
| 45 | +from typing import Literal |
46 | 46 | from urllib.parse import urljoin
|
47 | 47 |
|
48 | 48 | import jinja2
|
@@ -479,15 +479,15 @@ def version_info():
|
479 | 479 | """Handler for --version."""
|
480 | 480 | try:
|
481 | 481 | platex_version = head(
|
482 |
| - subprocess.check_output(["platex", "--version"], universal_newlines=True), |
| 482 | + subprocess.check_output(["platex", "--version"], text=True), |
483 | 483 | lines=3,
|
484 | 484 | )
|
485 | 485 | except FileNotFoundError:
|
486 | 486 | platex_version = "Not installed."
|
487 | 487 |
|
488 | 488 | try:
|
489 | 489 | xelatex_version = head(
|
490 |
| - subprocess.check_output(["xelatex", "--version"], universal_newlines=True), |
| 490 | + subprocess.check_output(["xelatex", "--version"], text=True), |
491 | 491 | lines=2,
|
492 | 492 | )
|
493 | 493 | except FileNotFoundError:
|
|
0 commit comments