mirror of
https://git.launchpad.net/beautifulsoup
synced 2025-10-06 00:12:49 +02:00
Fixed missing import that caused test failures when Soup Sieve is installed.
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
Beautiful Soup's official support for Python 2 ended on January 1st,
|
Note: Beautiful Soup's official support for Python 2 ended on January 1st,
|
||||||
2021. The final release to support Python 2 was Beautiful Soup
|
2021. The final release to support Python 2 was Beautiful Soup
|
||||||
4.9.3. In the Launchpad Git repository, the final revision to support
|
4.9.3. In the Launchpad Git repository, the final revision to support
|
||||||
Python 2 was revision 70f546b1e689a70e2f103795efce6d261a3dadf7.
|
Python 2 was revision 70f546b1e689a70e2f103795efce6d261a3dadf7.
|
||||||
|
|
||||||
= 4.11.2 (Unreleased)
|
= 4.11.2 (20230131)
|
||||||
|
|
||||||
* Fixed test failures caused by nondeterministic behavior of
|
* Fixed test failures caused by nondeterministic behavior of
|
||||||
UnicodeDammit's character detection, depending on the platform setup.
|
UnicodeDammit's character detection, depending on the platform setup.
|
||||||
@@ -24,6 +24,8 @@ Python 2 was revision 70f546b1e689a70e2f103795efce6d261a3dadf7.
|
|||||||
* Passing a Tag's .contents into PageElement.extend() now works the
|
* Passing a Tag's .contents into PageElement.extend() now works the
|
||||||
same way as passing the Tag itself.
|
same way as passing the Tag itself.
|
||||||
|
|
||||||
|
* Soup Sieve tests will be skipped if the library is not installed.
|
||||||
|
|
||||||
= 4.11.1 (20220408)
|
= 4.11.1 (20220408)
|
||||||
|
|
||||||
This release was done to ensure that the unit tests are packaged along
|
This release was done to ensure that the unit tests are packaged along
|
||||||
|
11
LICENSE
11
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
Beautiful Soup is made available under the MIT license:
|
Beautiful Soup is made available under the MIT license:
|
||||||
|
|
||||||
Copyright (c) 2004-2022 Leonard Richardson
|
Copyright (c) Leonard Richardson
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
@@ -23,8 +23,9 @@ Beautiful Soup is made available under the MIT license:
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
Beautiful Soup incorporates code from the html5lib library, which is
|
Beautiful Soup incorporates code from the html5lib library, which is
|
||||||
also made available under the MIT license. Copyright (c) 2006-2013
|
also made available under the MIT license. Copyright (c) James Graham
|
||||||
James Graham and other contributors
|
and other contributors
|
||||||
|
|
||||||
Beautiful Soup depends on the soupsieve library, which is also made
|
Beautiful Soup has an optional dependency on the soupsieve library,
|
||||||
available under the MIT license. Copyright (c) 2018 Isaac Muse
|
which is also made available under the MIT license. Copyright (c)
|
||||||
|
Isaac Muse
|
||||||
|
@@ -13,6 +13,9 @@ from . import (
|
|||||||
SOUP_SIEVE_PRESENT,
|
SOUP_SIEVE_PRESENT,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if SOUP_SIEVE_PRESENT:
|
||||||
|
from soupsieve import SelectorSyntaxError
|
||||||
|
|
||||||
class TestEncoding(SoupTest):
|
class TestEncoding(SoupTest):
|
||||||
"""Test the ability to encode objects into strings."""
|
"""Test the ability to encode objects into strings."""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user