• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(12424)  |  Call(10989)  |  Derive(0)  |  Import(1435)
Issue a warning, or maybe ignore it or raise an exception.

src/a/n/antlr3-python-example-HEAD/antlr3/tree.py   antlr3-python-example(Download)
        if len(args) == 1 and isinstance(args[0], Token):
            # Object create(Token payload);
            warnings.warn(
                "Using create() is deprecated, use createWithPayload()",
                DeprecationWarning,
                stacklevel=2
                )
            ):
            # Object create(int tokenType, Token fromToken);
            warnings.warn(
                "Using create() is deprecated, use createFromToken()",
                DeprecationWarning,
                stacklevel=2
                )
            ):
            # Object create(int tokenType, Token fromToken, String text);
            warnings.warn(
                "Using create() is deprecated, use createFromToken()",
                DeprecationWarning,
                stacklevel=2
                )
            ):
            # Object create(int tokenType, String text);
            warnings.warn(
                "Using create() is deprecated, use createFromType()",
                DeprecationWarning,
                stacklevel=2
                )

src/b/r/braintree_python_examples-HEAD/tr_checkout_app_engine/braintree/util/deprecation_util.py   braintree_python_examples(Download)
    def deprecation(message):
        warnings.warn(message, DeprecationWarning, stacklevel=2)
 

src/p/y/python-cookbook-HEAD/cb2_examples/cb2_20_3_exm_2.py   python-cookbook(Download)
    def _warn(self):
        warnings.warn('use %r, not %r' % (self.name, self.oldname),
                      DeprecationWarning, stacklevel=3)
    def __init__(self, name, oldname):
        super(OldAlias, self).__init__(name)
        self.oldname = oldname
    def __get__(self, inst, cls):

src/p/y/PyAMF-HEAD/doc/tutorials/examples/actionscript/google_appengine/simplejson/__init__.py   PyAMF(Download)
def decode(s):
    """
    demjson, python-cjson API compatibility hook. Use loads(s) instead.
    """
    import warnings
    warnings.warn("simplejson.loads(s) should be used instead of decode(s)",
        DeprecationWarning)
def encode(obj):
    """
    demjson, python-cjson compatibility hook. Use dumps(s) instead.
    """
    import warnings
    warnings.warn("simplejson.dumps(s) should be used instead of encode(s)",
        DeprecationWarning)
def read(s):
    """
    jsonlib, JsonUtils, python-json, json-py API compatibility hook.
    Use loads(s) instead.
    """
    import warnings
    warnings.warn("simplejson.loads(s) should be used instead of read(s)",
def write(obj):
    """
    jsonlib, JsonUtils, python-json, json-py API compatibility hook.
    Use dumps(s) instead.
    """
    import warnings
    warnings.warn("simplejson.dumps(s) should be used instead of write(s)",

src/m/a/matplotlib-HEAD/py4science/examples/sphinx_template/sphinxext/mathmpl.py   matplotlib(Download)
        try:
            depth = mathtext_parser.to_png(filename, latex, dpi=100)
        except:
            warnings.warn("Could not render math expression %s" % latex,
                          Warning)
            depth = 0
    rcParams['mathtext.fontset'] = orig_fontset

src/p/y/pyjamas-desktop-HEAD/pyjamas-webkit/examples/jsonrpc/public/services/simplejson/__init__.py   pyjamas-desktop(Download)
def read(s):
    """
    json-py API compatibility hook.  Use loads(s) instead.
    """
    import warnings
    warnings.warn("simplejson.loads(s) should be used instead of read(s)",
        DeprecationWarning)
def write(obj):
    """
    json-py API compatibility hook.  Use dumps(s) instead.
    """
    import warnings
    warnings.warn("simplejson.dumps(s) should be used instead of write(s)",
        DeprecationWarning)

src/p/y/pyjamas-desktop-HEAD/pyjamas-web/examples/jsonrpc/public/services/simplejson/__init__.py   pyjamas-desktop(Download)
def read(s):
    """
    json-py API compatibility hook.  Use loads(s) instead.
    """
    import warnings
    warnings.warn("simplejson.loads(s) should be used instead of read(s)",
        DeprecationWarning)
def write(obj):
    """
    json-py API compatibility hook.  Use dumps(s) instead.
    """
    import warnings
    warnings.warn("simplejson.dumps(s) should be used instead of write(s)",
        DeprecationWarning)

src/p/y/pyjamas-desktop-HEAD/pyjamas-khtml/examples/jsonrpc/public/services/simplejson/__init__.py   pyjamas-desktop(Download)
def read(s):
    """
    json-py API compatibility hook.  Use loads(s) instead.
    """
    import warnings
    warnings.warn("simplejson.loads(s) should be used instead of read(s)",
        DeprecationWarning)
def write(obj):
    """
    json-py API compatibility hook.  Use dumps(s) instead.
    """
    import warnings
    warnings.warn("simplejson.dumps(s) should be used instead of write(s)",
        DeprecationWarning)

src/b/r/braintree_python_examples-HEAD/tr_checkout_app_engine/braintree/customer.py   braintree_python_examples(Download)
            result = braintree.Customer.confirm_transparent_redirect_request("foo=bar&id=12345")
        """
 
        warnings.warn("Please use TransparentRedirect.confirm instead", DeprecationWarning)
        id = TransparentRedirect.parse_and_validate_query_string(query_string)["id"][0]
        return Customer._post("/customers/all/confirm_transparent_redirect_request", {"id": id})
 
    def transparent_redirect_create_url():
        """ Returns the url to use for creating Customers through transparent redirect. """
 
        warnings.warn("Please use TransparentRedirect.url instead", DeprecationWarning)
        return Configuration.base_merchant_url() + "/customers/all/create_via_transparent_redirect_request"
 
    @staticmethod
    def transparent_redirect_update_url():
        """ Returns the url to use for updating Customers through transparent redirect. """
 
        warnings.warn("Please use TransparentRedirect.url instead", DeprecationWarning)

src/p/y/pyjamas-HEAD/src/examples/jsonrpc/public/services/simplejson/__init__.py   pyjamas(Download)
def read(s):
    """
    json-py API compatibility hook.  Use loads(s) instead.
    """
    import warnings
    warnings.warn("simplejson.loads(s) should be used instead of read(s)",
        DeprecationWarning)
def write(obj):
    """
    json-py API compatibility hook.  Use dumps(s) instead.
    """
    import warnings
    warnings.warn("simplejson.dumps(s) should be used instead of write(s)",
        DeprecationWarning)

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