Did I find the right examples for you? yes no

All Samples(373)  |  Call(189)  |  Derive(184)  |  Import(0)
Base class for warnings about dubious runtime behavior.

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/pct_warnings.py   modern-python-example(Download)
class CryptoRuntimeWarning(RuntimeWarning, CryptoWarning):
    """Base PyCrypto RuntimeWarning class"""
 
#
# Warnings that we might actually use

src/h/u/hunch-sample-app-HEAD/django/core/exceptions.py   hunch-sample-app(Download)
class DjangoRuntimeWarning(RuntimeWarning):
   pass
 
class ObjectDoesNotExist(Exception):
    "The requested object does not exist"

src/f/l/Flask-MenuBuilder-0.9.2/flask_menubuilder.py   Flask-MenuBuilder(Download)
            if self.app.debug:
                raise RuntimeError("There's already a menu with the id: %s", menu_id)
            raise RuntimeWarning("There's already a menu with the id: %s", menu_id)
        menu = Menu(
            menu_id, id_=id_, classes=classes, visiblewhen=visiblewhen,
            if self.app.debug:
                raise RuntimeError(msg)
            raise RuntimeWarning(msg)
 
        menu_item = MenuItem(
                )
            raise RuntimeWarning(
                "The menu item being added is not a MenuItem", type(menu_item)
            )
        if menu_item.endpoint in self.menus[menu_id].entries:
            if self.app.debug:
                raise RuntimeError(msg, self.menus[menu_id].entries[menu_item.endpoint])
            raise RuntimeWarning(msg, self.menus[menu_id].entries[menu_item.endpoint])
        self.menus[menu_id].add_menu_item(menu_item)
        return menu_item
                )
            raise RuntimeWarning(
                "The menu item being added is not a MenuItem", type(menu_item)
            )
        if menu_item.endpoint in self.entries:

src/s/c/scikit-image-HEAD/skimage/io/_plugins/null_plugin.py   scikit-image(Download)
def imshow(*args, **kwargs):
    warnings.warn(RuntimeWarning(message))
 
 
def imread(*args, **kwargs):
    warnings.warn(RuntimeWarning(message))
 
 
def imsave(*args, **kwargs):
    warnings.warn(RuntimeWarning(message))

src/l/a/lazarus-0.5/lazarus/__init__.py   lazarus(Download)
    if not _active:
        msg = 'lazarus is not active'
        raise RuntimeWarning(msg)
    _pollthread.stop()
    _pollthread.join()
def _activate():
    global _active
    if _active:
        msg = 'lazarus is already active'
        raise RuntimeWarning(msg)
def _deactivate():
    global _active
    if not _active:
        msg = 'lazarus is not active'
        raise RuntimeWarning(msg)
def poll_restart():
    if not _active:
        msg = 'lazarus is not active'
        raise RuntimeWarning(msg)
    if _notifier.check_events(1):
    if _active:
        msg = 'lazarus is already active'
        raise RuntimeWarning(msg)
 
    _python_path = os.getenv('PYTHONPATH')

src/x/u/xutools-HEAD/src/xutools/corpus/__init__.py   xutools(Download)
    def __eq__(self, other):
 
        if self.path_field_equality_components != other.path_field_equality_components:
            raise RuntimeWarning("Path field equality components are not the same in elements!")
        if self.path_field_equality_components_is_whitelist != other.path_field_equality_components_is_whitelist:
            raise RuntimeWarning("Path field equality components are not both black|white lists!")
        if self.element_equality_fields != other.element_equality_fields:
            raise RuntimeWarning("Element equality fields are not equal in elements being compared!")

src/s/c/scikit-image-0.9.3/skimage/io/_plugins/null_plugin.py   scikit-image(Download)
def imshow(*args, **kwargs):
    warnings.warn(RuntimeWarning(message))
 
 
def imread(*args, **kwargs):
    warnings.warn(RuntimeWarning(message))

src/v/i/vis-framework-1.0.1/vis/analyzers/indexers/ngram.py   vis-framework(Download)
            for obj in things:
                if obj in terminator:
                    raise RuntimeWarning(u'hit a terminator')
                else:
                    post.append(unicode(obj))
                    post.append(u' ')
            post = post[:-1] # remove last space
            post.append(markers[1])
        elif things[0] in terminator:
            raise RuntimeWarning(u'hit a terminator')

src/s/c/scikits-image-0.7.1/skimage/io/_plugins/null_plugin.py   scikits-image(Download)
def imshow(*args, **kwargs):
    warnings.warn(RuntimeWarning(message))
 
 
def imread(*args, **kwargs):
    warnings.warn(RuntimeWarning(message))

src/q/u/quickrelease-HEAD/quickrelease/process.py   quickrelease(Download)
for path in gProcessAndStepDefnPath:
    if not os.path.isfile(JoinPaths(path, INIT_PY)):
        raise RuntimeWarning(INIT_PY_MISSING_ERR_STR % (path))
    for d in (QUICKRELEASE_PROCESSES_DIR, QUICKRELEASE_STEPS_DIR):
        checkDir = JoinPaths(path, d)
        if not os.path.isdir(checkDir):
            raise RuntimeWarning("The specified directory '%s' in "
             "bailing." % (path, d))
        elif not os.path.isfile(JoinPaths(checkDir, INIT_PY)):
            raise RuntimeWarning(INIT_PY_MISSING_ERR_STR % (checkDir))
 
class Process(object):

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next