DJANGO cannot import name _compare_digest

Pavol Lisy pavol.lisy at gmail.com
Sat Jul 1 11:55:19 EDT 2017


On 7/1/17, Thomas Jollans <tjol at tjol.eu> wrote:
> On 30/06/17 13:32, Pavol Lisy wrote:
>> [snip]
>>
>> python 3.6.1 works as I expected
>>
>>>>> import logging as operator
>>>>> from operator import _compare_digest as compare_digest
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ImportError: cannot import name '_compare_digest'
>>
>
> All you're seeing here is that operator._compare_digest doesn't exist in
> python3.

You are right. I am sorry that I overlook this.



More information about the Python-list mailing list