summaryrefslogtreecommitdiff
path: root/django/utils/baseconv.py
diff options
context:
space:
mode:
authorpythonwood <582223837@qq.com>2021-05-04 13:09:09 +0800
committerGitHub <noreply@github.com>2021-05-04 07:09:09 +0200
commit071cf6863005fd63ac2aefc509f90a18c6f4ec79 (patch)
tree7822cc8828aa3b3e945804fc5b84f059ca626542 /django/utils/baseconv.py
parent7582d913e7db7f32e4cdcfafc177aa77cbbf4332 (diff)
Fixed #32709 -- Corrected examples in django/utils/baseconv.py docstring.
Diffstat (limited to 'django/utils/baseconv.py')
-rw-r--r--django/utils/baseconv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/baseconv.py b/django/utils/baseconv.py
index 28099affae..c43d9e5a9d 100644
--- a/django/utils/baseconv.py
+++ b/django/utils/baseconv.py
@@ -30,10 +30,10 @@ Sample usage::
>>> base20.decode('-31e')
-1234
>>> base11 = BaseConverter('0123456789-', sign='$')
- >>> base11.encode('$1234')
+ >>> base11.encode(-1234)
'$-22'
>>> base11.decode('$-22')
- '$1234'
+ -1234
"""