Skip to content

Commit c79e63e

Browse files
Revert "Use deepcopy for sync"
This reverts commit 2ae6b93.
1 parent 1bcb2a1 commit c79e63e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

telebot/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# random module to generate random string
2121
import random
2222
import string
23-
import copy
2423

2524
import ssl
2625

@@ -8750,7 +8749,7 @@ def _run_middlewares_and_handler(self, message, handlers, middlewares, update_ty
87508749
logger.error("It is not allowed to pass data and values inside data to the handler. Check your handler: {}".format(handler['function']))
87518750
return
87528751
else:
8753-
data_copy = copy.deepcopy(data)
8752+
data_copy = data.copy()
87548753
for key in list(data_copy):
87558754
# remove data from data_copy if handler does not accept it
87568755
if key not in params:

0 commit comments

Comments
 (0)