• Aymeric Augustin's avatar
    Raised SuspiciousFileOperation in safe_join. · b8ba73cd
    Aymeric Augustin yazdı
    Added a test for the condition safe_join is designed to prevent.
    
    Previously, a generic ValueError was raised. It was impossible to tell
    an intentional exception raised to implement safe_join's contract from
    an unintentional exception caused by incorrect inputs or unexpected
    conditions. That resulted in bizarre exception catching patterns, which
    this patch removes.
    
    Since safe_join is a private API and since the change is unlikely to
    create security issues for users who use it anyway -- at worst, an
    uncaught SuspiciousFileOperation exception will bubble up -- it isn't
    documented.
    b8ba73cd
Adı
Son kayıt (commit)
Son güncelleme
..
archives Loading commit data...
eggs Loading commit data...
files Loading commit data...
locale/nl/LC_MESSAGES Loading commit data...
test_module Loading commit data...
__init__.py Loading commit data...
models.py Loading commit data...
test_archive.py Loading commit data...
test_autoreload.py Loading commit data...
test_baseconv.py Loading commit data...
test_checksums.py Loading commit data...
test_crypto.py Loading commit data...
test_datastructures.py Loading commit data...
test_dateformat.py Loading commit data...
test_dateparse.py Loading commit data...
test_datetime_safe.py Loading commit data...
test_decorators.py Loading commit data...
test_encoding.py Loading commit data...
test_feedgenerator.py Loading commit data...
test_functional.py Loading commit data...
test_html.py Loading commit data...
test_http.py Loading commit data...
test_ipv6.py Loading commit data...
test_itercompat.py Loading commit data...
test_jslex.py Loading commit data...
test_lazyobject.py Loading commit data...
test_lorem_ipsum.py Loading commit data...
test_module_loading.py Loading commit data...
test_no_submodule.py Loading commit data...
test_numberformat.py Loading commit data...
test_os_utils.py Loading commit data...
test_regex_helper.py Loading commit data...
test_safestring.py Loading commit data...
test_simplelazyobject.py Loading commit data...
test_termcolors.py Loading commit data...
test_text.py Loading commit data...
test_timesince.py Loading commit data...
test_timezone.py Loading commit data...
test_tree.py Loading commit data...
test_tzinfo.py Loading commit data...