Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(0)  |  Derive(0)  |  Import(8)

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/utils/__init__.py   madcow(Download)
    def __enter__(self):
        """Enter context: Create temporary file for writing, copying stat() of original"""
        from gruntle.memebot.exceptions import TrapErrors, TrapError, trapped, reraise
 
        # make sure the directory exists
    def __exit__(self, *exc_info):
        """Exist context: Move file into place with atomic os.rename() if no errors. Clean up cruft"""
        from gruntle.memebot.exceptions import trapped
        if exc_info[1] is None:
            os.rename(self.temp_file, self.file)
    """Get a named logger configured to use the site log directory"""
 
    from gruntle.memebot.exceptions import trapped
    from gruntle.memebot.utils import text
    from django.conf import settings

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/scanner/image.py   madcow(Download)
from django.conf import settings
from gruntle.memebot.scanner import Scanner, ScanResult
from gruntle.memebot.exceptions import InvalidContent, ConfigError, trapped
 
class ImageScanner(Scanner):

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/scanner/imgur.py   madcow(Download)
from gruntle.memebot.utils.browser import decode_entities
from gruntle.memebot.scanner.image import ImageScanner
from gruntle.memebot.exceptions import InvalidContent, trapped
from gruntle.memebot.scanner import ScanResult
 

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/scanner/bolt.py   madcow(Download)
"""Extract image from gallery view of imgur links, but grab the title on the way"""
 
from gruntle.memebot.scanner.image import ImageScanner
from gruntle.memebot.exceptions import InvalidContent, trapped
 

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/scanner/html.py   madcow(Download)
from BeautifulSoup import BeautifulSoup, NavigableString
from gruntle.memebot.scanner import Scanner, ScanResult
from gruntle.memebot.exceptions import InvalidContent, trapped
from gruntle.memebot.utils import text, browser
from gruntle.memebot.utils.browser import render_node, strip_site_name

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/scanner/youtube.py   madcow(Download)
"""Provides embedded youtube video for youtube links"""
 
from django.conf import settings
from gruntle.memebot.scanner import Scanner, ScanResult
from gruntle.memebot.exceptions import InvalidContent, trapped