Skip to content
Snippets Groups Projects
Verified Commit fb2c2d82 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files
parent 6b000fc3
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ class Receipt: ...@@ -116,7 +116,7 @@ class Receipt:
def _compute_md5(filehandler: UploadedFile) -> bytes: def _compute_md5(filehandler: UploadedFile) -> bytes:
h = hashlib.md5() h = hashlib.md5()
for chunk in filehandler: for chunk in filehandler:
h.update(chunk) # type: ignore h.update(chunk)
return h.digest() return h.digest()
......
# Copyright (C) 2019-2021 The Software Heritage developers # Copyright (C) 2019-2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution # See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version # License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information # See top-level LICENSE file for more information
...@@ -11,7 +11,7 @@ import re ...@@ -11,7 +11,7 @@ import re
from typing import TYPE_CHECKING, Dict, Mapping from typing import TYPE_CHECKING, Dict, Mapping
from xml.etree import ElementTree from xml.etree import ElementTree
from django.test.utils import setup_databases # type: ignore from django.test.utils import setup_databases
from django.urls import reverse_lazy as reverse from django.urls import reverse_lazy as reverse
import psycopg2 import psycopg2
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment