#32709: fix utils/baseconv.py -> self.sign
-------------------------------------------+------------------------
Reporter: pythonwood | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: 3.2
Severity: Normal | Keywords: utils
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
I have a simple pull in gihub # 14339
[https://github.com/django/django/pull/14339/commits/86e0ec9df0b5ed7a9160c10974bf1adef19eb539]
{{{
def encode(self, i):
neg, value = self.convert(i, self.decimal_digits, self.digits, '-')
}}}
try and know that arg '-' should be self.sign:
{{{
In [1]: from django.utils import baseconv
In [2]: base11 = baseconv.BaseConverter('0123456789-', sign='$')
In [3]: base11.encode('$1234')
ValueError: substring not found
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32709>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.f6eff491f65f91946ccd6090b240ae26%40djangoproject.com.