From 071cf6863005fd63ac2aefc509f90a18c6f4ec79 Mon Sep 17 00:00:00 2001 From: pythonwood <582223837@qq.com> Date: Tue, 4 May 2021 13:09:09 +0800 Subject: [PATCH] Fixed #32709 -- Corrected examples in django/utils/baseconv.py docstring. --- django/utils/baseconv.py | 4 ++-- 1 file 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 """