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


Quelle  _util.py   Sprache: Python

 
# -*- coding: utf-8 -*-
# Copyright 2019 - 2022 Avram Lubkin, All Rights Reserved

# 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/.

"""
Utility objects
"""


import os
import platform
import sys

if sys.version_info[:2] < (3, 3):  # pragma: no branch
    import mock  # pragma: no cover  # pylint: disable=import-error, unused-import
else:
    from unittest import mock  # noqa: F401  # pylint: disable=unused-import

# pylint: disable-next=undefined-variable
BASESTRING = basestring if sys.version_info[0] < 3 else str  # noqa: F821
IS_WINDOWS = platform.system() == 'Windows'


class error(Exception):  # pylint: disable=invalid-name
    """
    Generic class for Jinxed errors
    """


def get_term(*args, **kwargs):  # pylint: disable=unused-argument
    """
    A lightweight stand-in for win32.get_term() for non-Windows platforms
    Returns value of TERM environment variable or 'unknown'
    """

    return os.environ.get('TERM''unknown')


def raise_from_none(exc):  # pragma: no cover
    """
    Convenience function to raise from None in a Python 2/3 compatible manner
    """
    raise exc


if sys.version_info[0] >= 3:  # pragma: no branch
    exec('def raise_from_none(exc):\n raise exc from None')  # pylint: disable=exec-used

Messung V0.5
C=70 H=76 G=72

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge