Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quellcode-Bibliothek checksums.py

  Interaktion und
PortierbarkeitPython
 

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


def parse_checksums_file(checksums):
    """
    Parses checksums files that the build system generates and uploads:
    https://hg.mozilla.org/mozilla-central/file/default/build/checksums.py
    """
    fileInfo = {}
    for line in checksums.splitlines():
        hash_, type_, size, file_ = line.split(None3)
        if isinstance(type_, bytes):
            type_ = type_.decode("utf-8")
        if isinstance(file_, bytes):
            file_ = file_.decode("utf-8")
        size = int(size)
        if size < 0:
            raise ValueError("Found negative value (%d) for size." % size)
        if file_ not in fileInfo:
            fileInfo[file_] = {"hashes": {}}
        # If the file already exists, make sure that the size matches the
        # previous entry.
        elif fileInfo[file_]["size"] != size:
            raise ValueError(
                "Found different sizes for same file %s (%s and %s)"
                % (file_, fileInfo[file_]["size"], size)
            )
        # Same goes for the hash.
        elif (
            type_ in fileInfo[file_]["hashes"]
            and fileInfo[file_]["hashes"][type_] != hash_
        ):
            raise ValueError(
                "Found different %s hashes for same file %s (%s and %s)"
                % (type_, file_, fileInfo[file_]["hashes"][type_], hash_)
            )
        fileInfo[file_]["size"] = size
        fileInfo[file_]["hashes"][type_] = hash_
    return fileInfo

Messung V0.5 in Prozent
C=92 H=93 G=92

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-08-25) ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002