|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/utils/ |
Upload File : |
�
r�\c
@ s2 d Z d g Z d d l m Z d Z d � Z d S( s
Common checksum routines.
t luhni����( t sixi i i i i i i i i i c C s� t | t j � s! t | � } n y~ t g | d d d � D] } t | � ^ q; � } t g | d d d � D] } t t | � ^ qm � } | | d d k SWn t k
r� t SXd S( s�
Checks a candidate number for validity according to the Luhn
algorithm (used in validation of, for example, credit cards).
Both numeric and string candidates are accepted.
i����Ni����i
i ( t
isinstanceR t string_typest strt sumt intt LUHN_ODD_LOOKUPt
ValueErrort False( t candidatet ct evenst odds( ( s8 /tmp/pip-install-XxeQeY/django/django/utils/checksums.pyR s 26
N(
i i i i i i i i i i ( t __doc__t __all__t django.utilsR R R ( ( ( s8 /tmp/pip-install-XxeQeY/django/django/utils/checksums.pyt <module> s