diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2022-11-14 16:43:12 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2022-11-14 16:43:12 +0530 |
commit | d47f8b48935d258f4c5c3e2267911753bebd5214 (patch) | |
tree | 3ed04e75bc3fc7c8e4ce618f527565da1df630a1 /env/lib/python3.10/site-packages/PIL/_util.py | |
parent | 9468226a9e2e2ab8cdd599f1d8538e860ca86120 (diff) | |
download | idcard-d47f8b48935d258f4c5c3e2267911753bebd5214.tar.gz idcard-d47f8b48935d258f4c5c3e2267911753bebd5214.tar.bz2 idcard-d47f8b48935d258f4c5c3e2267911753bebd5214.zip |
id card
Diffstat (limited to 'env/lib/python3.10/site-packages/PIL/_util.py')
-rw-r--r-- | env/lib/python3.10/site-packages/PIL/_util.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/env/lib/python3.10/site-packages/PIL/_util.py b/env/lib/python3.10/site-packages/PIL/_util.py deleted file mode 100644 index ba27b7e..0000000 --- a/env/lib/python3.10/site-packages/PIL/_util.py +++ /dev/null @@ -1,19 +0,0 @@ -import os -from pathlib import Path - - -def is_path(f): - return isinstance(f, (bytes, str, Path)) - - -def is_directory(f): - """Checks if an object is a string, and that it points to a directory.""" - return is_path(f) and os.path.isdir(f) - - -class DeferredError: - def __init__(self, ex): - self.ex = ex - - def __getattr__(self, elt): - raise self.ex |