From 0cd52704192091bc0af086e6a5984acf1c714391 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Thu, 21 Nov 2024 18:25:44 +0100 Subject: [PATCH] Using deprecated.deprecated instead of warnings.deprecated because warnings.deprecated is not compatible with all python3 versions. --- data_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_file.py b/data_file.py index bab3235..06df39a 100644 --- a/data_file.py +++ b/data_file.py @@ -7,10 +7,10 @@ With this module, you can store data in files easyly. import os import json -from warnings import deprecated +from deprecated import deprecated -@deprecated("This function is not safe to use!!!") +@deprecated(reason="This function is not safe to use!!!") class DictFile: """ This class is not safe to use!