PageRenderTime 553ms queryTime 68ms sortTime 1ms getByIdsTime 306ms findMatchingLines 123ms

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

Not the results you expected?
__init__.py https://github.com/jsaxon-cars/celery.git | Python | 467 lines
                    
22
                    
23from ..exceptions import CPendingDeprecationWarning, CDeprecationWarning
                    
24
                    
49    if deprecation is not None:
                    
50        w = CPendingDeprecationWarning(PENDING_DEPRECATION_FMT % ctx)
                    
51    else:
                    
                
testsuite.py https://gitlab.com/ikondov/ase | Python | 436 lines
                    
105            warnings.filterwarnings('error')
                    
106            for warntype in [PendingDeprecationWarning, ImportWarning,
                    
107                             ResourceWarning]:
                    
                
runtests.py https://github.com/defcube/django-1.git | Python | 325 lines
                    
12warnings.filterwarnings('ignore', "The Databrowse contrib app is deprecated",
                    
13                        PendingDeprecationWarning, 'django.contrib.databrowse')
                    
14
                    
                
register.py https://gitlab.com/abhi1tb/build | Python | 304 lines
                    
60        warn("distutils.command.register.check_metadata is deprecated, \
                    
61              use the check command instead", PendingDeprecationWarning)
                    
62        check = self.distribution.get_command_obj('check')
                    
                
test_archive_util.py https://github.com/shin-asou/main.git | Python | 284 lines
                    
160
                    
161        # using compress and testing the PendingDeprecationWarning
                    
162        old_dir = os.getcwd()
                    
                
__init__.py https://github.com/Tippr/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
                    
                
datastructures.py https://github.com/theosp/google_appengine.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
                    
                
common.py https://github.com/jsa/gaesdk-python.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:
                    
                
subclassing.py https://gitlab.com/gregtyka/frankenserver | 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)
                    
                
__init__.py https://bitbucket.org/apratim_ankur/city_lounge.git | Python | 231 lines
                    
144                                  "settings, as auto-correction is now deprecated." % setting,
                    
145                        PendingDeprecationWarning)
                    
146                    setting_value = (setting_value,) # In case the user forgot the comma.
                    
                
sql.py https://github.com/txm/potato.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    )
                    
                
__init__.py https://bitbucket.org/rattray/anonbox.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        )
                    
                
wizard.py https://github.com/navarro81/curso_python_dga_11.git | Python | 283 lines
                    
67
                    
68            # PendingDeprecationWarning <- left here to remind us that this
                    
69            # compatibility fallback should be removed in Django 1.5
                    
                
base.py https://bitbucket.org/rattray/hackpack-nodocs.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/nachee1325/todoprv | 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:
                    
                
memcached.py https://github.com/Tippr/django.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        )
                    
                
assertions.py https://bitbucket.org/eastfox2002/sqlalchemy.git | Python | 377 lines
                    
36        filters = [dict(action='ignore',
                    
37                        category=sa_exc.SAPendingDeprecationWarning)]
                    
38        if not messages:
                    
96        filters = [dict(action='ignore',
                    
97                        category=sa_exc.SAPendingDeprecationWarning)]
                    
98        if not messages:
                    
                
__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            )
                    
                
list_detail.py https://github.com/enlaces/curso_python_dga_11.git | Python | 152 lines
                    
9    'Function-based generic views have been deprecated; use class-based views instead.',
                    
10    PendingDeprecationWarning
                    
11)
                    
                
__init__.py https://bitbucket.org/ssaltzman/poet.git | Python | 145 lines
                    
57                                  "LOCALE_PATHS setting instead.",
                    
58                                  PendingDeprecationWarning)
                    
59        else:
                    
                
models.py https://github.com/freyley/django-reversion.git | Python | 277 lines
                    
21                "%s is deprecated, and will be removed in django-reversion 1.7. Use %s instead" % (original, replacement),
                    
22                PendingDeprecationWarning,
                    
23            )
                    
                
test_smtpd.py https://bitbucket.org/kbengine/kbengine.git | Python | 291 lines
                    
241    def test_attribute_deprecations(self):
                    
242        with support.check_warnings(('', PendingDeprecationWarning)):
                    
243            spam = self.channel._SMTPChannel__server
                    
243            spam = self.channel._SMTPChannel__server
                    
244        with support.check_warnings(('', PendingDeprecationWarning)):
                    
245            self.channel._SMTPChannel__server = 'spam'
                    
245            self.channel._SMTPChannel__server = 'spam'
                    
246        with support.check_warnings(('', PendingDeprecationWarning)):
                    
247            spam = self.channel._SMTPChannel__line
                    
247            spam = self.channel._SMTPChannel__line
                    
248        with support.check_warnings(('', PendingDeprecationWarning)):
                    
249            self.channel._SMTPChannel__line = 'spam'
                    
249            self.channel._SMTPChannel__line = 'spam'
                    
250        with support.check_warnings(('', PendingDeprecationWarning)):
                    
251            spam = self.channel._SMTPChannel__state
                    
                
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})
                    
                
settings.py https://github.com/Fandekasp/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    )
                    
                
base.py https://github.com/jcsp/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)
                    
                
imp.py https://gitlab.com/areema/myproject | Python | 345 lines
                    
32              "see the module's documentation for alternative uses",
                    
33              PendingDeprecationWarning, stacklevel=2)
                    
34
                    
                
simple.py https://github.com/enlaces/curso_python_dga_11.git | Python | 289 lines
                    
20            "DjangoTestRunner is deprecated; it's functionality is indistinguishable from TextTestRunner",
                    
21            PendingDeprecationWarning
                    
22        )
                    
                
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/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
                    
                
base.py https://github.com/bhomnick/mongodb-engine.git | Python | 184 lines
                    
24    warnings.warn("The %r option is deprecated as of version 0.4 in flavor of "
                    
25                  "the 'OPERATIONS' setting" % opt, PendingDeprecationWarning)
                    
26
                    
                
__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    )
                    
                
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,
                    
                
forms.py https://github.com/enlaces/curso_python_dga_11.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
                    
                
__init__.py https://github.com/Tippr/django.git | Python | 462 lines
                    
15
                    
16warnings.filterwarnings('ignore', category=PendingDeprecationWarning,
                    
17                        module='django.contrib.formtools.wizard')
                    
                
auth_backends.py https://github.com/aruder77/applause.git | Python | 253 lines
                    
162        warnings.resetwarnings()
                    
163        warnings.simplefilter('ignore', PendingDeprecationWarning)
                    
164
                    
                
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            )
                    
                
s3.py https://bitbucket.org/nguyenivan/topsnam.git | Python | 288 lines
                    
52            "Use the s3boto backend instead.",
                    
53            PendingDeprecationWarning
                    
54        )
                    
                
__init__.py https://github.com/abstract-open-solutions/ScrumDo.git | Python | 126 lines
                    
32        warnings.warn("ChoiceEnum is deprecated, use Choices instead.",
                    
33                      PendingDeprecationWarning)
                    
34        self._choices = tuple(enumerate(choices))
                    
                
cbook.py https://github.com/tris-sondon/matplotlib.git | Python | 1704 lines
                    
116    pending : bool, optional
                    
117        If True, uses a PendingDeprecationWarning instead of a
                    
118        DeprecationWarning.
                    
171    pending : bool, optional
                    
172        If True, uses a PendingDeprecationWarning instead of a
                    
173        DeprecationWarning.
                    
                
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."""
                    
                
__init__.py https://github.com/FreakTheMighty/celery.git | Python | 449 lines
                    
51            if deprecation is not None:
                    
52                w = PendingDeprecationWarning(PENDING_DEPRECATION_FMT % ctx)
                    
53            else:
                    
                
abc.py https://bitbucket.org/kbengine/kbengine.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)
                    
                
test_util.py https://github.com/albertz/CPython.git | Python | 811 lines
                    
132    def test_warning(self):
                    
133        # Should raise a PendingDeprecationWarning when used.
                    
134        with warnings.catch_warnings():
                    
                
sdist.py https://github.com/albertz/CPython.git | Python | 495 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')
                    
                
tasks.py https://github.com/albertz/CPython.git | Python | 900 lines
                    
108                      "use asyncio.current_task() instead",
                    
109                      PendingDeprecationWarning,
                    
110                      stacklevel=2)
                    
122                      "use asyncio.all_tasks() instead",
                    
123                      PendingDeprecationWarning,
                    
124                      stacklevel=2)
                    
                
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
                    
                
regcheck.py https://github.com/vesnican/play.git | Python | 125 lines
                    
5warnings.warn("The regcheck module has been pending deprecation since build 210",
                    
6	      category=PendingDeprecationWarning)
                    
7
                    
                
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:
                    
                
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)
                    
                
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,
                    
                
tests.py https://github.com/Tippr/django.git | Python | 274 lines
                    
71        self.warning_state = get_warnings_state()
                    
72        warnings.filterwarnings('ignore', category=PendingDeprecationWarning,
                    
73                                module='django.views.decorators.cache')
                    
                
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)
                    
                
generate_exceptions.py https://bitbucket.org/mdavid/dlr.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, (), ()),
                    
                
deprecation.py https://gitlab.com/asmjahid/django | Python | 111 lines
                    
6
                    
7class RemovedInDjango20Warning(PendingDeprecationWarning):
                    
8    pass
                    
                
views.py https://bitbucket.org/cld/django-braces.git | Python | 485 lines
                    
31        warnings.warn("CreateAndRedirectToEditView is deprecated and will be "
                    
32            "removed in a future release.", PendingDeprecationWarning)
                    
33        return super(CreateAndRedirectToEditView, self).dispatch(request,
                    
                
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,
                    
                
test_loaders.py https://github.com/netoxico/celery.git | Python | 256 lines
                    
10from celery.app import app_or_default
                    
11from celery.exceptions import CPendingDeprecationWarning, ImproperlyConfigured
                    
12from celery.loaders import base
                    
75
                    
76            self.assertIsInstance(warning, CPendingDeprecationWarning)
                    
77            self.assertIn("deprecation", warning.args[0])
                    
84
                    
85            self.assertIsInstance(warning, CPendingDeprecationWarning)
                    
86            self.assertIn("deprecation", warning.args[0])
                    
                
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
                    
                
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,
                    
                
tree_python.py https://bitbucket.org/luobailiang/sublime-config.git | Python | 767 lines
                    
86    ("class", "DeprecationWarning"),
                    
87    ("class", "PendingDeprecationWarning"),
                    
88    ("class", "SyntaxWarning"),
                    
                
cgi.py https://bitbucket.org/glix/python.git | Python | 1051 lines
                    
183    warn("cgi.parse_qs is deprecated, use urlparse.parse_qs \
                    
184            instead",PendingDeprecationWarning)
                    
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)
                    
192    return urlparse.parse_qsl(qs, keep_blank_values, strict_parsing)
                    
                
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)
                    
                
models.py https://github.com/andrewkuzmych/litclub.git | Python | 398 lines
                    
87    warn("form_for_model is deprecated. Use ModelForm instead.",
                    
88        PendingDeprecationWarning, stacklevel=3)
                    
89    opts = model._meta
                    
116    warn("form_for_instance is deprecated. Use ModelForm instead.",
                    
117        PendingDeprecationWarning, stacklevel=3)
                    
118    model = instance.__class__
                    
                
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/rattray/anonbox.git | Python | 145 lines
                    
75                "Support for validating the gender of a CZ Birth number has been deprecated.",
                    
76                PendingDeprecationWarning)
                    
77            if gender == 'f':
                    
                
cgi.py https://github.com/chrishaukap/GameDev.git | Python | 1051 lines
                    
183    warn("cgi.parse_qs is deprecated, use urlparse.parse_qs \
                    
184            instead", 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)
                    
                
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)
                    
                
test_abc_loader.py https://bitbucket.org/kbengine/kbengine.git | Python | 876 lines
                    
104            assert len(w) == 1
                    
105            assert issubclass(w[0].category, PendingDeprecationWarning)
                    
106            return path
                    
200            assert len(w) == 1
                    
201            assert issubclass(w[0].category, PendingDeprecationWarning)
                    
202            return code_object
                    
                
smtpd.py https://bitbucket.org/kbengine/kbengine.git | Python | 707 lines
                    
144        warn("Access to __server attribute on SMTPChannel is deprecated, "
                    
145            "use 'smtp_server' instead", PendingDeprecationWarning, 2)
                    
146        return self.smtp_server
                    
149        warn("Setting __server attribute on SMTPChannel is deprecated, "
                    
150            "set 'smtp_server' instead", PendingDeprecationWarning, 2)
                    
151        self.smtp_server = value
                    
155        warn("Access to __line attribute on SMTPChannel is deprecated, "
                    
156            "use 'received_lines' instead", PendingDeprecationWarning, 2)
                    
157        return self.received_lines
                    
160        warn("Setting __line attribute on SMTPChannel is deprecated, "
                    
161            "set 'received_lines' instead", PendingDeprecationWarning, 2)
                    
162        self.received_lines = value
                    
166        warn("Access to __state attribute on SMTPChannel is deprecated, "
                    
167            "use 'smtp_state' instead", PendingDeprecationWarning, 2)
                    
168        return self.smtp_state
                    
                
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
                    
                
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
                    
                
 

Source

Language