Files
Hotel-Booking/Backend/venv/lib/python3.12/site-packages/qrcode/compat/pil.py
Iliyan Angelov 34b4c969d4 updates
2025-11-19 12:27:01 +02:00

13 lines
362 B
Python

# Try to import PIL in either of the two ways it can be installed.
Image = None
ImageDraw = None
try:
from PIL import Image, ImageDraw # type: ignore # noqa: F401
except ImportError: # pragma: no cover
try:
import Image # type: ignore # noqa: F401
import ImageDraw # type: ignore # noqa: F401
except ImportError:
pass