summaryrefslogtreecommitdiff
path: root/beautifulsoup/util.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-01-25 15:04:42 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-01-25 15:04:42 -0500
commit9b4eb2db8a830ff4522de4b744548039fdf5a2e6 (patch)
tree702868259331cb80ea710c56626105b92ee840d1 /beautifulsoup/util.py
parent02e7c7271829655781feb4dd5476814511096111 (diff)
Removed very copy of the code that was imported as part of the bzr import but not removed.
Diffstat (limited to 'beautifulsoup/util.py')
-rw-r--r--beautifulsoup/util.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/beautifulsoup/util.py b/beautifulsoup/util.py
deleted file mode 100644
index 5978865..0000000
--- a/beautifulsoup/util.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# Helper functions and mixin classes for Beautiful Soup
-
-import types
-try:
- set
-except NameError:
- from sets import Set as set
-
-def isList(l):
- """Convenience method that works with all 2.x versions of Python
- to determine whether or not something is listlike."""
- return ((hasattr(l, '__iter__') and not isinstance(l, basestring))
- or (type(l) in (types.ListType, types.TupleType)))
-
-def buildSet(args=None):
- """Turns a list or a string into a set."""
- if isinstance(args, str):
- return set([args])
- if args is None:
- return set()
- return set(args)