-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract string and dictlib and collections modules into jaraco.text a…
…nd jaraco.collections packages.
- Loading branch information
Showing
7 changed files
with
18 additions
and
1,034 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
from __future__ import absolute_import | ||
import warnings | ||
|
||
class Everything(object): | ||
""" | ||
A collection "containing" every possibly thing. | ||
from jaraco.collections import Everything | ||
|
||
>>> 'foo' in Everything() | ||
True | ||
__all__ = ['Everything'] | ||
|
||
>>> import random | ||
>>> random.randint(1, 999) in Everything() | ||
True | ||
""" | ||
def __contains__(self, other): | ||
return True | ||
warnings.warn("Use jaraco.collections package", DeprecationWarning) |
Oops, something went wrong.