summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2021-05-05 23:28:08 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-05-07 11:57:40 +0200
commit028f10fac651292edf8d50e013b16a52862e4c08 (patch)
treedacf9d5fcd6e337a213bbd2a942a7894768955e6 /django/utils
parentc4ee3b208a2c95a5102b5e4fa789b10f8ee29b84 (diff)
Fixed #32712 -- Deprecated django.utils.baseconv module.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/baseconv.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/django/utils/baseconv.py b/django/utils/baseconv.py
index c43d9e5a9d..21f1fb3b91 100644
--- a/django/utils/baseconv.py
+++ b/django/utils/baseconv.py
@@ -1,3 +1,4 @@
+# RemovedInDjango50Warning
# Copyright (c) 2010 Guilherme Gondim. All rights reserved.
# Copyright (c) 2009 Simon Willison. All rights reserved.
# Copyright (c) 2002 Drew Perttula. All rights reserved.
@@ -36,6 +37,15 @@ Sample usage::
-1234
"""
+import warnings
+
+from django.utils.deprecation import RemovedInDjango50Warning
+
+warnings.warn(
+ 'The django.utils.baseconv module is deprecated.',
+ category=RemovedInDjango50Warning,
+ stacklevel=2,
+)
BASE2_ALPHABET = '01'
BASE16_ALPHABET = '0123456789ABCDEF'