Skip to content

Commit 4f3d7ec

Browse files
authored
Use wraps for proper decoration
1 parent f144202 commit 4f3d7ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pytesseract.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import string
1818
from glob import iglob
1919
from csv import QUOTE_NONE
20+
from functools import wraps
2021
from pkgutil import find_loader
2122
from distutils.version import LooseVersion
2223
from os.path import realpath, normpath, normcase
@@ -77,6 +78,7 @@ def __init__(self):
7778

7879

7980
def run_once(func):
81+
@wraps(func)
8082
def wrapper(*args, **kwargs):
8183
if wrapper._result is wrapper:
8284
wrapper._result = func(*args, **kwargs)

0 commit comments

Comments
 (0)