PageRenderTime 1565ms queryTime 688ms sortTime 1ms getByIdsTime 482ms findMatchingLines 306ms

100+ results results for 'PendingDeprecationWarning' (1565 ms)

Not the results you expected?
common.py https://bitbucket.org/pcelta/python-django.git | Python | 153 lines
                    
133                      'in favor of IGNORABLE_404_URLS.',
                    
134                      PendingDeprecationWarning)
                    
135        for start in settings.IGNORABLE_404_STARTS:
                    
141                      'in favor of IGNORABLE_404_URLS.',
                    
142                      PendingDeprecationWarning)
                    
143        for end in settings.IGNORABLE_404_ENDS:
                    
                
test_archive_util.py https://gitlab.com/ZoZworc/install | Python | 328 lines
                    
177
                    
178        # using compress and testing the PendingDeprecationWarning
                    
179        old_dir = os.getcwd()
                    
                
register.py https://github.com/theosp/google_appengine.git | Python | 315 lines
                    
61        warn("distutils.command.register.check_metadata is deprecated, \
                    
62              use the check command instead", PendingDeprecationWarning)
                    
63        check = self.distribution.get_command_obj('check')
                    
                
testsuite.py https://gitlab.com/ikondov/ase | Python | 436 lines
                    
105            warnings.filterwarnings('error')
                    
106            for warntype in [PendingDeprecationWarning, ImportWarning,
                    
107                             ResourceWarning]:
                    
                
subclassing.py https://github.com/theosp/google_appengine.git | Python | 117 lines
                    
17            "`connection` argument." % func.__name__,
                    
18            PendingDeprecationWarning, stacklevel=2)
                    
19
                    
24            warn("%s has been called without providing a connection argument. " %
                    
25                func.__name__, PendingDeprecationWarning,
                    
26                stacklevel=1)
                    
42            "`connection` and `prepared` arguments." % func.__name__,
                    
43            PendingDeprecationWarning, stacklevel=2)
                    
44
                    
49            warn("%s has been called without providing a connection argument. " %
                    
50                func.__name__, PendingDeprecationWarning,
                    
51                stacklevel=1)
                    
                
datastructures.py https://bitbucket.org/Liosan/gizapi.git | Python | 306 lines
                    
141            d.insert(0, "hello", "world")
                    
142        assert w[0].category is PendingDeprecationWarning
                    
143
                    
148            self.assertEqual(d.value_for_index(0), 3)
                    
149        assert w[0].category is PendingDeprecationWarning
                    
150
                    
                
__init__.py https://bitbucket.org/signonsandiego/django.git | Python | 188 lines
                    
32        # Python 2.5, 2.4.  Works on Python 2.6 but raises
                    
33        # PendingDeprecationWarning
                    
34        from cgi import parse_qsl
                    
82            "settings.CACHE_* is deprecated; use settings.CACHES instead.",
                    
83            PendingDeprecationWarning
                    
84        )
                    
                
sql.py https://github.com/theosp/google_appengine.git | Python | 190 lines
                    
104        'This command has been deprecated. The command ``sqlflush`` can be used to delete everything. You can also use ALTER TABLE or DROP TABLE statements manually.',
                    
105        PendingDeprecationWarning
                    
106    )
                    
                
base.py https://bitbucket.org/atmb4u/django-nonrel.git | Python | 310 lines
                    
109            # Fall back to Django 1.2 method
                    
110            # PendingDeprecationWarning <- here to remind us to
                    
111            # remove this fallback in Django 1.5
                    
                
UserDict.py https://gitlab.com/chaifegn/myblog | Python | 213 lines
                    
17            warnings.warn("Passing 'dict' as keyword argument is "
                    
18                          "deprecated", PendingDeprecationWarning,
                    
19                          stacklevel=2)
                    
76            warnings.warn("Passing 'dict' as keyword argument is deprecated",
                    
77                          PendingDeprecationWarning, stacklevel=2)
                    
78        else:
                    
                
__init__.py https://github.com/rohanza/django.git | Python | 167 lines
                    
71            warnings.warn('If set, %s must end with a slash' % name,
                    
72                          PendingDeprecationWarning)
                    
73        object.__setattr__(self, name, value)
                    
                
recwarn.py https://gitlab.com/phongphans61/machine-learning-tictactoe | Python | 296 lines
                    
54) -> Union["WarningsRecorder", Any]:
                    
55    """Assert that code produces a ``DeprecationWarning`` or ``PendingDeprecationWarning``.
                    
56
                    
80        args = (func,) + args
                    
81    return warns((DeprecationWarning, PendingDeprecationWarning), *args, **kwargs)
                    
82
                    
                
python_shell.py https://github.com/enthought/pyface.git | Python | 357 lines
                    
70                "call create() for future behaviour",
                    
71                PendingDeprecationWarning,
                    
72            )
                    
                
models.py https://github.com/etienned/django-reversion.git | Python | 299 lines
                    
21                "%s is deprecated, and will be removed in django-reversion 1.7. Use %s instead" % (original, replacement),
                    
22                PendingDeprecationWarning,
                    
23            )
                    
                
__init__.py https://bitbucket.org/ssaltzman/poet.git | Python | 145 lines
                    
57                                  "LOCALE_PATHS setting instead.",
                    
58                                  PendingDeprecationWarning)
                    
59        else:
                    
                
wizard.py https://gitlab.com/gregtyka/frankenserver | Python | 287 lines
                    
67
                    
68            # PendingDeprecationWarning <- left here to remind us that this
                    
69            # compatibility fallback should be removed in Django 1.5
                    
                
test_userdict.py https://gitlab.com/pmuontains/Odoo | Python | 383 lines
                    
33        with test_support.check_warnings((".*'dict'.*",
                    
34                                          PendingDeprecationWarning)):
                    
35            self.assertEqual(UserDict.UserDict(dict=[('one',1), ('two',2)]), d2)
                    
162        with test_support.check_warnings((".*'dict'.*",
                    
163                                          PendingDeprecationWarning)):
                    
164            self.assertEqual(list(UserDict.UserDict(dict={'a': 42}).items()),
                    
176        with test_support.check_warnings((".*'dict'.*",
                    
177                                          PendingDeprecationWarning)):
                    
178            d.update(dict={'a': 42})
                    
                
imp.py https://gitlab.com/areema/myproject | Python | 345 lines
                    
32              "see the module's documentation for alternative uses",
                    
33              PendingDeprecationWarning, stacklevel=2)
                    
34
                    
                
memcached.py https://github.com/theosp/google_appengine.git | Python | 177 lines
                    
132            "memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.",
                    
133            PendingDeprecationWarning
                    
134        )
                    
                
runtests.py https://github.com/SmileyChris/django-old.git | Python | 325 lines
                    
12warnings.filterwarnings('ignore', "The Databrowse contrib app is deprecated",
                    
13                        PendingDeprecationWarning, 'django.contrib.databrowse')
                    
14
                    
                
deprecation.py https://gitlab.com/llndhlov/journly | Python | 147 lines
                    
11
                    
12class RemovedInDjango41Warning(PendingDeprecationWarning):
                    
13    pass
                    
                
archive_util.py https://github.com/rpattabi/ironruby.git | Python | 243 lines
                    
108    if compress == 'compress':
                    
109        warn("'compress' will be deprecated.", PendingDeprecationWarning)
                    
110        # the option varies depending on the platform
                    
                
__init__.py https://github.com/adamn/django.git | Python | 187 lines
                    
31    except ImportError:
                    
32        # Python 2.5.  Works on Python 2.6 but raises PendingDeprecationWarning
                    
33        from cgi import parse_qsl
                    
                
__init__.py https://github.com/radicsoft/django.git | Python | 188 lines
                    
32        # Python 2.5, 2.4.  Works on Python 2.6 but raises
                    
33        # PendingDeprecationWarning
                    
34        from cgi import parse_qsl
                    
                
__init__.py https://github.com/theosp/google_appengine.git | Python | 161 lines
                    
25        warnings.warn("The mimetype keyword argument is deprecated, use "
                    
26            "content_type instead", PendingDeprecationWarning, stacklevel=2)
                    
27        httpresponse_kwargs['content_type'] = mimetype
                    
                
__init__.py https://github.com/eric-brechemier/django.git | Python | 108 lines
                    
15        'The run_gis_tests() test runner has been deprecated in favor of GeoDjangoTestSuiteRunner.',
                    
16        PendingDeprecationWarning
                    
17    )
                    
                
list_detail.py https://bitbucket.org/ssaltzman/poet.git | Python | 152 lines
                    
9    'Function-based generic views have been deprecated; use class-based views instead.',
                    
10    PendingDeprecationWarning
                    
11)
                    
                
worker_transition.py https://gitlab.com/murder187ss/buildbot | Python | 324 lines
                    
86
                    
87# DeprecationWarning or PendingDeprecationWarning may be used as
                    
88# the base class, but by default deprecation warnings are disabled in Python,
                    
                
securite.py https://github.com/wxgeo/geophar.git | Python | 184 lines
                    
47            'LookupError', 'UnicodeError', 'IndentationError', 'Exception', 'UnicodeTranslateError', 'UnicodeEncodeError', \
                    
48            'PendingDeprecationWarning', 'ArithmeticError', 'MemoryError', 'ImportError', 'KeyError', 'SyntaxWarning', \
                    
49            'EnvironmentError', 'OSError', 'DeprecationWarning', 'UnicodeWarning', 'ValueError', 'NotImplemented', \
                    
                
__init__.py https://bitbucket.org/taxilian/racecontrol5.git | Python | 104 lines
                    
18            "settings.DATABASE_* is deprecated; use settings.DATABASES instead.",
                    
19            PendingDeprecationWarning
                    
20        )
                    
47                "a backend from 'django.contrib.gis.db.backends'" % alias,
                    
48                PendingDeprecationWarning
                    
49            )
                    
59                "Prepend %s.ENGINE with 'django.db.backends.'" % alias,
                    
60                PendingDeprecationWarning
                    
61            )
                    
                
simple.py https://bitbucket.org/synl0rd/channel-sample-gae.git | Python | 289 lines
                    
20            "DjangoTestRunner is deprecated; it's functionality is indistinguishable from TextTestRunner",
                    
21            PendingDeprecationWarning
                    
22        )
                    
                
s3.py https://bitbucket.org/nguyenivan/topsnam.git | Python | 288 lines
                    
52            "Use the s3boto backend instead.",
                    
53            PendingDeprecationWarning
                    
54        )
                    
                
forms.py https://bitbucket.org/synl0rd/channel-sample-gae.git | Python | 206 lines
                    
51            # Fallback to Django 1.2 method for compatibility
                    
52            # PendingDeprecationWarning <- here to remind us to remove this
                    
53            # fallback in Django 1.5
                    
                
exc.py https://gitlab.com/orvi2014/rcs-db-ext | Python | 200 lines
                    
194
                    
195class SAPendingDeprecationWarning(PendingDeprecationWarning):
                    
196    """Issued once per usage of a deprecated API."""
                    
                
settings.py https://github.com/pombredanne/django-massmedia.git | Python | 211 lines
                    
65        "settings.MMEDIA_IMAGE_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
                    
66        PendingDeprecationWarning
                    
67    )
                    
72        "settings.MMEDIA_VIDEO_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
                    
73        PendingDeprecationWarning
                    
74    )
                    
79        "settings.MMEDIA_AUDIO_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
                    
80        PendingDeprecationWarning
                    
81    )
                    
86        "settings.MMEDIA_FLASH_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
                    
87        PendingDeprecationWarning
                    
88    )
                    
93        "settings.MMEDIA_DOC_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
                    
94        PendingDeprecationWarning
                    
95    )
                    
                
test_common.py https://github.com/ogrisel/scikit-learn.git | Python | 165 lines
                    
126            with pytest.warns(None) as records:
                    
127                warnings.simplefilter('ignore', PendingDeprecationWarning)
                    
128                Xt_sp = est_sparse.fit(X_train_sp).transform(X_test_sp)
                    
131            with pytest.warns(None) as records:
                    
132                warnings.simplefilter('ignore', PendingDeprecationWarning)
                    
133                Xt_inv_sp = est_sparse.inverse_transform(Xt_sp)
                    
                
description.py https://gitlab.com/zaverichintan/orange3 | Python | 472 lines
                    
85                          "integer constants instead",
                    
86                          PendingDeprecationWarning)
                    
87            flags = eval(flags)
                    
145                          "integer constants instead",
                    
146                          PendingDeprecationWarning)
                    
147            flags = eval(flags)
                    
                
fields.py https://bitbucket.org/taxilian/racecontrol5.git | Python | 900 lines
                    
51        "`django.forms.fields.DEFAULT_%s` is deprecated; use `django.utils.formats.get_format('%s')` instead." % (name, name),
                    
52        PendingDeprecationWarning
                    
53    )
                    
                
creation.py https://bitbucket.org/taxilian/racecontrol5.git | Python | 484 lines
                    
142            'Database creation API for m2m tables has been deprecated. M2M models are now automatically generated',
                    
143            PendingDeprecationWarning
                    
144        )
                    
156            'Database creation API for m2m tables has been deprecated. M2M models are now automatically generated',
                    
157            PendingDeprecationWarning
                    
158        )
                    
219            'Database creation API for m2m tables has been deprecated. M2M models are now automatically generated',
                    
220            PendingDeprecationWarning
                    
221        )
                    
324            'Database creation API for m2m tables has been deprecated. M2M models are now automatically generated',
                    
325            PendingDeprecationWarning
                    
326        )
                    
                
__init__.py https://bitbucket.org/Squazic/youwastetime.git | Python | 691 lines
                    
20        # Python 2.5, 2.4.  Works on Python 2.6 but raises
                    
21        # PendingDeprecationWarning
                    
22        from cgi import parse_qsl
                    
117        warnings.warn("CompatCookie is deprecated, use django.http.SimpleCookie instead.",
                    
118                      PendingDeprecationWarning)
                    
119
                    
                
test_deprecations.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 635 lines
                    
137    I interpret this to mean 2 years after the 1.8 release. Possibly
                    
138    giving a PendingDeprecationWarning before that (which is visible
                    
139    by default)
                    
                
cbook.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 1693 lines
                    
117    pending : bool, optional
                    
118        If True, uses a PendingDeprecationWarning instead of a
                    
119        DeprecationWarning.
                    
175    pending : bool, optional
                    
176        If True, uses a PendingDeprecationWarning instead of a
                    
177        DeprecationWarning.
                    
                
BioSeq.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 576 lines
                    
112                      "instead of my_seq.tostring().",
                    
113                      PendingDeprecationWarning)
                    
114        return self.adaptor.get_subseq_as_string(self.primary_id,
                    
                
assertions.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 453 lines
                    
43        filters = [dict(action='ignore',
                    
44                        category=sa_exc.SAPendingDeprecationWarning)]
                    
45        if not messages:
                    
110    filters = [dict(action='ignore',
                    
111                    category=sa_exc.SAPendingDeprecationWarning)]
                    
112    if not messages:
                    
                
sdist.py https://gitlab.com/abhi1tb/build | Python | 494 lines
                    
164        warn("distutils.command.sdist.check_metadata is deprecated, \
                    
165              use the check command instead", PendingDeprecationWarning)
                    
166        check = self.distribution.get_command_obj('check')
                    
                
cgi.py https://gitlab.com/dahbearz/CRYENGINE | Python | 1051 lines
                    
183    warn("cgi.parse_qs is deprecated, use urlparse.parse_qs instead",
                    
184         PendingDeprecationWarning, 2)
                    
185    return urlparse.parse_qs(qs, keep_blank_values, strict_parsing)
                    
190    warn("cgi.parse_qsl is deprecated, use urlparse.parse_qsl instead",
                    
191         PendingDeprecationWarning, 2)
                    
192    return urlparse.parse_qsl(qs, keep_blank_values, strict_parsing)
                    
                
abc.py https://github.com/coapp-packages/python.git | Python | 304 lines
                    
197                            "compatible with Python 3.1 onwards.",
                    
198                        PendingDeprecationWarning)
                    
199        path = self.source_path(fullname)
                    
236                            "latest documentation for PyLoader.",
                    
237                        PendingDeprecationWarning)
                    
238        source_timestamp = self.source_mtime(fullname)
                    
                
deprecation.py https://gitlab.com/asmjahid/django | Python | 111 lines
                    
6
                    
7class RemovedInDjango20Warning(PendingDeprecationWarning):
                    
8    pass
                    
                
__init__.py https://bitbucket.org/ducopdep/tiny_blog.git | Python | 462 lines
                    
15
                    
16warnings.filterwarnings('ignore', category=PendingDeprecationWarning,
                    
17                        module='django.contrib.formtools.wizard')
                    
                
defaultfilters.py https://bitbucket.org/ducopdep/tiny_blog.git | Python | 896 lines
                    
55                          "instead" % (attr, attr, getattr(func, attr)),
                    
56                          PendingDeprecationWarning)
                    
57            setattr(_dec, attr, getattr(func, attr))
                    
                
__init__.py https://bitbucket.org/pcelta/python-django.git | Python | 842 lines
                    
24    except ImportError:
                    
25        # Python 2.5. Works on Python 2.6 but raises PendingDeprecationWarning
                    
26        from cgi import parse_qsl
                    
343    def raw_post_data(self):
                    
344        warnings.warn('HttpRequest.raw_post_data has been deprecated. Use HttpRequest.body instead.', PendingDeprecationWarning)
                    
345        return self.body
                    
                
runtests.py https://github.com/rgaidot/tornado.git | Python | 137 lines
                    
86                            module=r"tornado\..*")
                    
87    warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
                    
88    warnings.filterwarnings("error", category=PendingDeprecationWarning,
                    
                
utils.py https://bitbucket.org/taxilian/racecontrol5.git | Python | 170 lines
                    
26            "Short names for DATABASE_ENGINE are deprecated; prepend with 'django.db.backends.'",
                    
27            PendingDeprecationWarning
                    
28        )
                    
                
test_recwarn.py https://gitlab.com/Spagnotti3/wpt | Python | 386 lines
                    
131
                    
132        msg = "No warnings of type (.*DeprecationWarning.*, .*PendingDeprecationWarning.*)"
                    
133        with pytest.raises(pytest.fail.Exception, match=msg):
                    
140    @pytest.mark.parametrize(
                    
141        "warning_type", [PendingDeprecationWarning, DeprecationWarning]
                    
142    )
                    
                
decorators.py https://gitlab.com/Rockyspade/astropy | Python | 575 lines
                    
16from .exceptions import (AstropyDeprecationWarning,
                    
17                         AstropyPendingDeprecationWarning)
                    
18from ..extern import six
                    
62    pending : bool, optional
                    
63        If True, uses a AstropyPendingDeprecationWarning instead of a
                    
64        AstropyDeprecationWarning.
                    
130            if pending:
                    
131                category = AstropyPendingDeprecationWarning
                    
132            else:
                    
259    pending : bool, optional
                    
260        If True, uses a AstropyPendingDeprecationWarning instead of a
                    
261        AstropyDeprecationWarning.
                    
                
helper.py https://gitlab.com/Rockyspade/astropy | Python | 668 lines
                    
35                                AstropyDeprecationWarning,
                    
36                                AstropyPendingDeprecationWarning)
                    
37from ..config import configuration
                    
                
test_image.py https://gitlab.com/Rockyspade/astropy | Python | 1148 lines
                    
13from ....utils.exceptions import (AstropyDeprecationWarning,
                    
14                                  AstropyPendingDeprecationWarning)
                    
15from ....tests.helper import pytest, raises, catch_warnings
                    
                
compressed.py https://gitlab.com/Rockyspade/astropy | Python | 1133 lines
                    
25from ....utils.compat import ignored
                    
26from ....utils.exceptions import (AstropyPendingDeprecationWarning,
                    
27                                  AstropyUserWarning)
                    
                
test_client.py https://github.com/jcrobak/hue.git | Python | 635 lines
                    
97                        "Resolver.queryUDP instead.",
                    
98                        PendingDeprecationWarning, 0)])
                    
99        self.assertIdentical(protocol, resolver.protocol)
                    
                
client.py https://github.com/jcrobak/hue.git | Python | 926 lines
                    
75            "Resolver.protocol is deprecated; use Resolver.queryUDP instead.",
                    
76            PendingDeprecationWarning,
                    
77            stacklevel=0)
                    
                
datastructures.py https://github.com/theosp/google_appengine.git | Python | 518 lines
                    
219        warnings.warn(
                    
220            "SortedDict.value_for_index is deprecated", PendingDeprecationWarning,
                    
221            stacklevel=2
                    
227        warnings.warn(
                    
228            "SortedDict.insert is deprecated", PendingDeprecationWarning,
                    
229            stacklevel=2
                    
                
response.py https://github.com/theosp/google_appengine.git | Python | 447 lines
                    
48            warnings.warn("Using mimetype keyword argument is deprecated, use"
                    
49                          " content_type instead", PendingDeprecationWarning)
                    
50            content_type = mimetype
                    
306                'if you need the streaming behavior.',
                    
307                PendingDeprecationWarning, stacklevel=2)
                    
308        if not hasattr(self, '_iterator'):
                    
362    `content` attribute. Otherwise, they will behave like a regular response,
                    
363    and raise a `PendingDeprecationWarning`.
                    
364    """
                    
369            'deprecated. Use the `streaming_content` attribute instead.',
                    
370            PendingDeprecationWarning)
                    
371        content = b''.join(self)
                    
379            'deprecated. Use the `streaming_content` attribute instead.',
                    
380            PendingDeprecationWarning)
                    
381        self.streaming_content = [content]
                    
                
trans_real.py https://github.com/theosp/google_appengine.git | Python | 550 lines
                    
190            "Please use the 'nb' translation instead.",
                    
191            PendingDeprecationWarning
                    
192        )
                    
                
rbsite.py https://github.com/sawatzkylindsey/reviewboard.git | Python | 1466 lines
                    
37
                    
38# But then ignore the PendingDeprecationWarnings that we'll get from Django.
                    
39# See bug 1683.
                    
39# See bug 1683.
                    
40warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
                    
41
                    
                
__init__.py https://github.com/rohanza/django.git | Python | 113 lines
                    
35        warn("Authentication backends without a `supports_inactive_user` attribute are deprecated. Please define it in %s." % cls,
                    
36             PendingDeprecationWarning)
                    
37        cls.supports_inactive_user = False
                    
                
base.py https://github.com/rogerhu/celery.git | Python | 216 lines
                    
9from .. import __version__, Celery
                    
10from ..exceptions import CDeprecationWarning, CPendingDeprecationWarning
                    
11
                    
13# always enable DeprecationWarnings, so our users can see them.
                    
14for warning in (CDeprecationWarning, CPendingDeprecationWarning):
                    
15    warnings.simplefilter("once", warning, 0)
                    
                
__init__.py https://github.com/mumrah/celery.git | Python | 436 lines
                    
49            if deprecation is not None:
                    
50                w = PendingDeprecationWarning(PENDING_DEPRECATION_FMT % ctx)
                    
51            else:
                    
                
test_common.py https://github.com/scikit-learn/scikit-learn.git | Python | 183 lines
                    
133            with warnings.catch_warnings():
                    
134                warnings.simplefilter("ignore", PendingDeprecationWarning)
                    
135                warnings.simplefilter("error", RuntimeWarning)
                    
139            with warnings.catch_warnings():
                    
140                warnings.simplefilter("ignore", PendingDeprecationWarning)
                    
141                warnings.simplefilter("error", RuntimeWarning)
                    
                
test_tracking.py https://github.com/nipy/dipy.git | Python | 262 lines
                    
79                "ignore", message=descoteaux07_legacy_msg,
                    
80                category=PendingDeprecationWarning)
                    
81            reconst_csd_flow.run(dwi_path, bval_path, bvec_path, mask_path,
                    
97                "ignore", message=descoteaux07_legacy_msg,
                    
98                category=PendingDeprecationWarning)
                    
99            pf_track_pam.run(pam_path, wm_path, gm_path, csf_path, seeds_path)
                    
109                "ignore", message=descoteaux07_legacy_msg,
                    
110                category=PendingDeprecationWarning)
                    
111            pf_track_pam.run(pam_path,
                    
134                "ignore", message=descoteaux07_legacy_msg,
                    
135                category=PendingDeprecationWarning)
                    
136            reconst_csd_flow.run(data_path, bval_path, bvec_path, mask_path,
                    
184                "ignore", message=descoteaux07_legacy_msg,
                    
185                category=PendingDeprecationWarning)
                    
186            lf_track_pam.run(pam_path, gfa_path, seeds_path,
                    
                
__init__.py https://github.com/jacksonh/ScrumDo.git | Python | 126 lines
                    
32        warnings.warn("ChoiceEnum is deprecated, use Choices instead.",
                    
33                      PendingDeprecationWarning)
                    
34        self._choices = tuple(enumerate(choices))
                    
                
test_rumba.py https://github.com/nipy/dipy.git | Python | 394 lines
                    
135            "ignore", message=descoteaux07_legacy_msg,
                    
136            category=PendingDeprecationWarning)
                    
137        model_fit = model.fit(data)
                    
                
__init__.py https://github.com/chapmanb/biopython.git | Python | 171 lines
                    
23              "be different.",
                    
24              PendingDeprecationWarning)
                    
25
                    
                
shelve.py https://github.com/jpbarbosa/BraitenbergVehicles.git | Python | 231 lines
                    
88            warnings.warn("The 'binary' argument to Shelf() is deprecated",
                    
89                          PendingDeprecationWarning)
                    
90            protocol = int(binary)
                    
                
views.py https://gitlab.com/gregtyka/Scryve-Webapp | Python | 209 lines
                    
185                  'new class based view API.',
                    
186                  category=PendingDeprecationWarning)
                    
187
                    
                
forms.py https://bitbucket.org/signonsandiego/django.git | Python | 145 lines
                    
75                "Support for validating the gender of a CZ Birth number has been deprecated.",
                    
76                PendingDeprecationWarning)
                    
77            if gender == 'f':
                    
                
base.py https://github.com/mozilla/FlightDeck-lib.git | Python | 392 lines
                    
77import celery
                    
78from celery.exceptions import CDeprecationWarning, CPendingDeprecationWarning
                    
79from celery.platforms import EX_FAILURE, EX_USAGE, maybe_patch_concurrency
                    
83# always enable DeprecationWarnings, so our users can see them.
                    
84for warning in (CDeprecationWarning, CPendingDeprecationWarning):
                    
85    warnings.simplefilter('once', warning, 0)
                    
                
app_directories.py https://github.com/theosp/google_appengine.git | Python | 74 lines
                    
70        "'django.template.loaders.app_directories.load_template_source' is deprecated; use 'django.template.loaders.app_directories.Loader' instead.",
                    
71        PendingDeprecationWarning
                    
72    )
                    
                
runtests.py https://github.com/ovidiucp/tornado.git | Python | 180 lines
                    
107                            module=r"tornado\..*")
                    
108    warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
                    
109    warnings.filterwarnings("error", category=PendingDeprecationWarning,
                    
115                            message="Please use assert.* instead")
                    
116    # unittest2 0.6 on py26 reports these as PendingDeprecationWarnings
                    
117    # instead of DeprecationWarnings.
                    
117    # instead of DeprecationWarnings.
                    
118    warnings.filterwarnings("ignore", category=PendingDeprecationWarning,
                    
119                            message="Please use assert.* instead")
                    
                
context_processors.py https://bitbucket.org/ssaltzman/poet.git | Python | 113 lines
                    
99            "instead.",
                    
100            PendingDeprecationWarning
                    
101        )
                    
110            "instead.",
                    
111            PendingDeprecationWarning
                    
112        )
                    
                
base.py https://github.com/offbyone/celery.git | Python | 324 lines
                    
73import celery
                    
74from celery.exceptions import CDeprecationWarning, CPendingDeprecationWarning
                    
75from celery.platforms import EX_FAILURE, EX_USAGE
                    
78# always enable DeprecationWarnings, so our users can see them.
                    
79for warning in (CDeprecationWarning, CPendingDeprecationWarning):
                    
80    warnings.simplefilter("once", warning, 0)
                    
                
hmac.py https://gitlab.com/unofficial-mirrors/cpython | Python | 144 lines
                    
45            _warnings.warn("HMAC() without an explicit digestmod argument "
                    
46                           "is deprecated.", PendingDeprecationWarning, 2)
                    
47            digestmod = _hashlib.md5
                    
                
__init__.py https://github.com/rogerhu/celery.git | Python | 487 lines
                    
30
                    
31from ..exceptions import CPendingDeprecationWarning, CDeprecationWarning
                    
32
                    
66    if deprecation is not None:
                    
67        w = CPendingDeprecationWarning(PENDING_DEPRECATION_FMT % ctx)
                    
68    else:
                    
                
NCBIStandalone.py https://github.com/lincolnn/Bioinformatics.git | Python | 1166 lines
                    
52import warnings
                    
53warnings.warn("The plain text parser in this module still works at the time of writing, but is considered obsolete and updating it to cope with the latest versions of BLAST is not a priority for us.", PendingDeprecationWarning)
                    
54
                    
                
__init__.py https://github.com/lincolnn/Bioinformatics.git | Python | 531 lines
                    
82    import warnings
                    
83    warnings.warn("This function is obsolete, and any new code should call Bio.AlignIO instead.", PendingDeprecationWarning)
                    
84    # Avoid code duplication by calling Bio.AlignIO to do this for us.
                    
133    import warnings
                    
134    warnings.warn("This function (and the associated command line object) are now obsolete. Please use the Bio.Align.Applications.ClustalwCommandline wrapper with the Python subprocess module (and Bio.AlignIO for parsing) as described in the tutorial.", PendingDeprecationWarning)
                    
135    #We don't need to supply any piped input, but we setup the
                    
209    import warnings
                    
210    warnings.warn("This class is obsolete.", PendingDeprecationWarning)
                    
211    DEFAULT_VERSION = '1.81'
                    
235    import warnings
                    
236    warnings.warn("This command line wrapper is considerd obsolete. Please use the replacement Bio.Align.Applications.ClustalwCommandline wrapper instead, which uses the standardised Bio.Application style interface. This is described in the tutorial, with examples using ClustalW.", PendingDeprecationWarning)
                    
237    # set the valid options for different parameters
                    
                
deprecation.py https://gitlab.com/briankiragu/django | Python | 130 lines
                    
10
                    
11class RemovedInDjango21Warning(PendingDeprecationWarning):
                    
12    pass
                    
                
test_decorators.py https://github.com/astropy/astropy.git | Python | 771 lines
                    
12from astropy.utils.exceptions import (AstropyDeprecationWarning,
                    
13                                      AstropyPendingDeprecationWarning,
                    
14                                      AstropyUserWarning)
                    
69
                    
70    with pytest.warns(AstropyPendingDeprecationWarning):
                    
71        dummy.pending
                    
                
decorators.py https://github.com/astropy/astropy.git | Python | 1087 lines
                    
13from .exceptions import (AstropyDeprecationWarning, AstropyUserWarning,
                    
14                         AstropyPendingDeprecationWarning)
                    
15
                    
61    pending : bool, optional
                    
62        If True, uses a AstropyPendingDeprecationWarning instead of a
                    
63        ``warning_type``.
                    
116            if pending:
                    
117                category = AstropyPendingDeprecationWarning
                    
118            else:
                    
237    pending : bool, optional
                    
238        If True, uses a AstropyPendingDeprecationWarning instead of
                    
239        ``warning_type``.
                    
                
tests.py https://bitbucket.org/ducopdep/tiny_blog.git | Python | 275 lines
                    
72        self.warning_state = get_warnings_state()
                    
73        warnings.filterwarnings('ignore', category=PendingDeprecationWarning,
                    
74                                module='django.views.decorators.cache')
                    
                
base.py https://github.com/dctrwatson/celery.git | Python | 541 lines
                    
80import celery
                    
81from celery.exceptions import CDeprecationWarning, CPendingDeprecationWarning
                    
82from celery.five import items, string, string_t
                    
91# always enable DeprecationWarnings, so our users can see them.
                    
92for warning in (CDeprecationWarning, CPendingDeprecationWarning):
                    
93    warnings.simplefilter('once', warning, 0)
                    
                
tests.py https://github.com/niran/django-old.git | Python | 384 lines
                    
78        warnings.resetwarnings()
                    
79        warnings.simplefilter('ignore', PendingDeprecationWarning)
                    
80
                    
                
models.py https://github.com/raminel/geraldo.git | Python | 608 lines
                    
88    warn("form_for_model is deprecated. Use ModelForm instead.",
                    
89        PendingDeprecationWarning, stacklevel=3)
                    
90    opts = model._meta
                    
117    warn("form_for_instance is deprecated. Use ModelForm instead.",
                    
118        PendingDeprecationWarning, stacklevel=3)
                    
119    model = instance.__class__
                    
                
encoding.py https://github.com/theosp/google_appengine.git | Python | 244 lines
                    
38                      "and apply the @python_2_unicode_compatible decorator "
                    
39                      "instead.", PendingDeprecationWarning, stacklevel=2)
                    
40        super(StrAndUnicode, self).__init__(*args, **kwargs)
                    
                
test_util.py https://gitlab.com/unofficial-mirrors/cpython | Python | 761 lines
                    
131    def test_warning(self):
                    
132        # Should raise a PendingDeprecationWarning when used.
                    
133        with warnings.catch_warnings():
                    
                
test_hmac.py https://gitlab.com/unofficial-mirrors/cpython | Python | 496 lines
                    
12            warnings.filterwarnings("ignore",
                    
13                                    category=PendingDeprecationWarning)
                    
14            return func(*args, **kwargs)
                    
267    def test_with_digestmod_warning(self):
                    
268        with self.assertWarns(PendingDeprecationWarning):
                    
269            key = b"\x0b" * 16
                    
                
deprecations.py https://gitlab.com/abhi1tb/build | Python | 259 lines
                    
36def warn_pending_deprecation(msg, stacklevel=3):
                    
37    warnings.warn(msg, exc.SAPendingDeprecationWarning, stacklevel=stacklevel)
                    
38
                    
186            fn,
                    
187            exc.SAPendingDeprecationWarning,
                    
188            message % dict(func=fn.__name__),
                    
                
generate_exceptions.py https://github.com/thomo13/ironruby.git | Python | 500 lines
                    
38
                    
39pythonExcs = ['ImportError', 'RuntimeError', 'UnicodeTranslateError', 'PendingDeprecationWarning', 'EnvironmentError',
                    
40              'LookupError', 'OSError', 'DeprecationWarning', 'UnicodeError', 'FloatingPointError', 'ReferenceError',
                    
181                            ExceptionInfo('DeprecationWarning', 'IronPython.Runtime.Exceptions.DeprecationWarningException', None, (), ()),
                    
182                            ExceptionInfo('PendingDeprecationWarning', 'IronPython.Runtime.Exceptions.PendingDeprecationWarningException', None, (), ()),
                    
183                            ExceptionInfo('RuntimeWarning', 'IronPython.Runtime.Exceptions.RuntimeWarningException', None, (), ()),
                    
                
base.py https://gitlab.com/gregtyka/Scryve-Webapp | Python | 172 lines
                    
107            'The "postgresql" backend has been deprecated. Use "postgresql_psycopg2" instead.',
                    
108            PendingDeprecationWarning
                    
109        )
                    
                
testsuite.py https://gitlab.com/Sthaa/ase | Python | 461 lines
                    
107                warnings.filterwarnings('error')
                    
108                for warntype in [PendingDeprecationWarning, ImportWarning,
                    
109                                 ResourceWarning]:
                    
                
errwarning.py https://gitlab.com/betse/betse | Python | 139 lines
                    
84    warnings** (i.e., instances of the :class:`DeprecationWarning`,
                    
85    :class:`PendingDeprecationWarning`, and :class:`FutureWarning` exception
                    
86    base classes) emitted by the :mod:`warnings` module for the duration of
                    
96        DeprecationWarning,
                    
97        PendingDeprecationWarning,
                    
98        FutureWarning,
                    
                
test_fury.py https://github.com/nipy/dipy.git | Python | 447 lines
                    
67            "ignore", message=descoteaux07_legacy_msg,
                    
68            category=PendingDeprecationWarning)
                    
69        csa_model = CsaOdfModel(gtab, sh_order=6)
                    
291            "ignore", message=descoteaux07_legacy_msg,
                    
292            category=PendingDeprecationWarning)
                    
293        B = sh_to_sf_matrix(sphere, sh_order=4, return_inv=False)
                    
332            "ignore", message=descoteaux07_legacy_msg,
                    
333            category=PendingDeprecationWarning)
                    
334        new_B = sh_to_sf_matrix(new_sphere, sh_order=4, return_inv=False)
                    
                
memcached.py https://github.com/theosp/google_appengine.git | Python | 104 lines
                    
12        "Support for the 'cmemcache' library has been deprecated. Please use python-memcached instead.",
                    
13        PendingDeprecationWarning
                    
14    )
                    
                
 

Source

Language