# Path: botfriend/util.py
# def isstr(x):
#     """Compatibility method equivalent to isinstance(x, basestring)"""
#     if major == 2:
#         return isinstance(x, basestring)
#     return isinstance(x, bytes) or isinstance(x, str)


from pdb import set_trace
from feedgen.feed import FeedGenerator
from .util import isstr
import sys
import feedparser
#!/usr/bin/env python
# Connects feedparser to feedgen allowing round-trip creation
# and parsing of RSS and Atom feeds.


class Bridge(object):

    NO_VALUE = object()
    
    def __init__(self, filelike):

# Path: botfriend/util.py
# def isstr(x):
#     """Compatibility method equivalent to isinstance(x, basestring)"""
#     if major == 2:
#         return isinstance(x, basestring)
#     return isinstance(x, bytes) or isinstance(x, str)


# Path: botfriend/feedbridge.py
from pdb import set_trace
from feedgen.feed import FeedGenerator
from .util import isstr
import sys
import feedparser

#!/usr/bin/env python
# Connects feedparser to feedgen allowing round-trip creation
# and parsing of RSS and Atom feeds.


class Bridge(object):

    NO_VALUE = object()
    
    def __init__(self, filelike):

        if isstr(filelike):