summaryrefslogtreecommitdiff
path: root/bs4/util.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-05-21 18:10:15 -0400
committerLeonard Richardson <leonard.richardson@canonical.com>2011-05-21 18:10:15 -0400
commitadbc7ecfea5b3e3349cdb4b4eac702d1e2b42e63 (patch)
treee8a7024d0e4e4319a9f9148cbd43d986028282de /bs4/util.py
parentb4b3a1c6f001d99275e1682aa30ea5dc21017bea (diff)
parentc29185a017c93d1aa19dea4606bde2a064f23639 (diff)
OK, figured that out.
Diffstat (limited to 'bs4/util.py')
-rw-r--r--bs4/util.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/bs4/util.py b/bs4/util.py
deleted file mode 100644
index 8e33273..0000000
--- a/bs4/util.py
+++ /dev/null
@@ -1,23 +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)