PageRenderTime 244ms queryFilters 0ms Sphinxql 5ms app.CodeModel.GetByIds 215ms findMatchingLines 12ms GetByIds 227ms meta 0ms repositoryFilters 14ms languageFilters 0ms sourceFilters 1ms

1,346 results for 'PendingDeprecationWarning' (244 ms)

Source

Language

Repository

smtpd.py https://bitbucket.org/vinay.sajip/cpython-smtpd | Python | 717 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
smtpd.py https://bitbucket.org/maadiah/klayge | Python | 708 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
smtpd.py https://bitbucket.org/carljm/cpythonv/ | Python | 708 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
test_smtpd.py https://bitbucket.org/carljm/cpythonv/ | Python | 290 lines
239    def test_attribute_deprecations(self):
240        with support.check_warnings(('', PendingDeprecationWarning)):
241            spam = self.channel._SMTPChannel__server
241            spam = self.channel._SMTPChannel__server
242        with support.check_warnings(('', PendingDeprecationWarning)):
243            self.channel._SMTPChannel__server = 'spam'
243            self.channel._SMTPChannel__server = 'spam'
244        with support.check_warnings(('', PendingDeprecationWarning)):
245            spam = self.channel._SMTPChannel__line
245            spam = self.channel._SMTPChannel__line
246        with support.check_warnings(('', PendingDeprecationWarning)):
247            self.channel._SMTPChannel__line = 'spam'
247            self.channel._SMTPChannel__line = 'spam'
248        with support.check_warnings(('', PendingDeprecationWarning)):
249            spam = self.channel._SMTPChannel__state
test_smtpd.py git://pkgs.fedoraproject.org/python3 | Python | 292 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
smtpd.py https://bitbucket.org/downdate/neonunknown.git | Python | 708 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
test_coroutines.py https://bitbucket.org/mirror/cpython/ | Python | 1,721 lines
1257        async def test1():
1258            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1259                async for i1, i2 in AsyncIter():
1271            nonlocal buffer
1272            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1273                async for i in AsyncIter():
1290            nonlocal buffer
1291            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1292                async for i in AsyncIter():
1373        async def foo():
1374            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1375                async for i in I():
1482            nonlocal CNT
1483            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1484                async for i in AI():
test_coroutines.py https://bitbucket.org/bluehorn/sampling_prof | Python | 1,729 lines
1257        async def test1():
1258            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1259                async for i1, i2 in AsyncIter():
1271            nonlocal buffer
1272            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1273                async for i in AsyncIter():
1290            nonlocal buffer
1291            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1292                async for i in AsyncIter():
1373        async def foo():
1374            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1375                async for i in I():
1482            nonlocal CNT
1483            with self.assertWarnsRegex(PendingDeprecationWarning, "legacy"):
1484                async for i in AI():
generics.py https://github.com/dekkers/django-rest-framework.git | Python | 544 lines
129                          'when called without a `page_size` argument.',
130                          PendingDeprecationWarning, stacklevel=2)
131            deprecated_style = True
143                '`get_queryset()` and explicitly raise a 404 on empty querysets.',
144                PendingDeprecationWarning, stacklevel=2
145            )
194                'a *list* of filter backend classes.',
195                PendingDeprecationWarning, stacklevel=2
196            )
216                          'is due to be deprecated.',
217                          PendingDeprecationWarning, stacklevel=2)
218
301                'Use the `lookup_field` attribute instead',
302                PendingDeprecationWarning
303            )
generics.py https://github.com/yangdy/rftut.git | Python | 542 lines
127                          'when called without a `page_size` argument.',
128                          PendingDeprecationWarning, stacklevel=2)
129            deprecated_style = True
141                '`get_queryset()` and explicitly raise a 404 on empty querysets.',
142                PendingDeprecationWarning, stacklevel=2
143            )
192                'a *list* of filter backend classes.',
193                PendingDeprecationWarning, stacklevel=2
194            )
214                          'is due to be deprecated.',
215                          PendingDeprecationWarning, stacklevel=2)
216
299                'Use the `lookup_field` attribute instead',
300                PendingDeprecationWarning
301            )
relations.py https://github.com/dekkers/django-rest-framework.git | Python | 647 lines
349            msg = 'pk_url_kwarg is pending deprecation. Use lookup_field instead.'
350            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
351        if 'slug_url_kwarg' in kwargs:
352            msg = 'slug_url_kwarg is pending deprecation. Use lookup_field instead.'
353            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
354        if 'slug_field' in kwargs:
355            msg = 'slug_field is pending deprecation. Use lookup_field instead.'
356            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
357
400                          'You should set `lookup_field=slug` on the HyperlinkedRelatedField.'
401                    warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
402                return ret
520            msg = 'pk_url_kwarg is pending deprecation. Use lookup_field instead.'
521            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
522        if 'slug_url_kwarg' in kwargs:
transaction.py https://github.com/m3nadav/outfitsus.git | Python | 542 lines
104    warnings.warn("'is_managed' is deprecated.",
105        PendingDeprecationWarning, stacklevel=2)
106
108    warnings.warn("'managed' no longer serves a purpose.",
109        PendingDeprecationWarning, stacklevel=2)
110
112    warnings.warn("'commit_unless_managed' is now a no-op.",
113        PendingDeprecationWarning, stacklevel=2)
114
116    warnings.warn("'rollback_unless_managed' is now a no-op.",
117        PendingDeprecationWarning, stacklevel=2)
118
461    warnings.warn("autocommit is deprecated in favor of set_autocommit.",
462        PendingDeprecationWarning, stacklevel=2)
463
relations.py https://github.com/yangdy/rftut.git | Python | 645 lines
347            msg = 'pk_url_kwarg is pending deprecation. Use lookup_field instead.'
348            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
349        if 'slug_url_kwarg' in kwargs:
350            msg = 'slug_url_kwarg is pending deprecation. Use lookup_field instead.'
351            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
352        if 'slug_field' in kwargs:
353            msg = 'slug_field is pending deprecation. Use lookup_field instead.'
354            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
355
398                          'You should set `lookup_field=slug` on the HyperlinkedRelatedField.'
399                    warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
400                return ret
518            msg = 'pk_url_kwarg is pending deprecation. Use lookup_field instead.'
519            warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
520        if 'slug_url_kwarg' in kwargs:
__init__.py https://gitlab.com/ThyberZee/cleandrathe.git | Python | 186 lines
66    if parser_kwargs:
67        warnings.warn("parser_kwargs argument in creole2html would be removed in the future!", PendingDeprecationWarning)
68        parser_kwargs2.update(parser_kwargs)
80    if emitter_kwargs:
81        warnings.warn("emitter_kwargs argument in creole2html would be removed in the future!", PendingDeprecationWarning)
82        emitter_kwargs2.update(emitter_kwargs)
109    if parser_kwargs:
110        warnings.warn("parser_kwargs argument in html2creole would be removed in the future!", PendingDeprecationWarning)
111
117    if emitter_kwargs:
118        warnings.warn("emitter_kwargs argument in html2creole would be removed in the future!", PendingDeprecationWarning)
119        emitter_kwargs2.update(emitter_kwargs)
136    if parser_kwargs:
137        warnings.warn("parser_kwargs argument in html2textile would be removed in the future!", PendingDeprecationWarning)
138
tests.py https://bitbucket.org/mrshoul/django-hg-git | Python | 583 lines
320        with warnings.catch_warnings(record=True) as w:
321            warnings.simplefilter("always", PendingDeprecationWarning)
322            my_iter = iter(r)
322            my_iter = iter(r)
323            self.assertEqual(w[0].category, PendingDeprecationWarning)
324        with warnings.catch_warnings(record=True) as w:
324        with warnings.catch_warnings(record=True) as w:
325            warnings.simplefilter("always", PendingDeprecationWarning)
326            result = list(my_iter)
326            result = list(my_iter)
327            self.assertEqual(w[0].category, PendingDeprecationWarning)
328        #'\xde\x9e' == unichr(1950).encode('utf-8')
354        with warnings.catch_warnings():
355            warnings.simplefilter("ignore", PendingDeprecationWarning)
356            self.assertEqual(b''.join(r), b'helloworld')
__init__.py https://code.google.com/p/python-creole/ | Python | 187 lines
66    if parser_kwargs:
67        warnings.warn("parser_kwargs argument in creole2html would be removed in the future!", PendingDeprecationWarning)
68        parser_kwargs2.update(parser_kwargs)
80    if emitter_kwargs:
81        warnings.warn("emitter_kwargs argument in creole2html would be removed in the future!", PendingDeprecationWarning)
82        emitter_kwargs2.update(emitter_kwargs)
109    if parser_kwargs:
110        warnings.warn("parser_kwargs argument in html2creole would be removed in the future!", PendingDeprecationWarning)
111
117    if emitter_kwargs:
118        warnings.warn("emitter_kwargs argument in html2creole would be removed in the future!", PendingDeprecationWarning)
119        emitter_kwargs2.update(emitter_kwargs)
136    if parser_kwargs:
137        warnings.warn("parser_kwargs argument in html2textile would be removed in the future!", PendingDeprecationWarning)
138
__init__.py git://github.com/jedie/python-creole.git | Python | 185 lines
56            "parser_kwargs argument in creole2html would be removed in the future!",
57            PendingDeprecationWarning)
58        parser_kwargs2.update(parser_kwargs)
73            "emitter_kwargs argument in creole2html would be removed in the future!",
74            PendingDeprecationWarning)
75        emitter_kwargs2.update(emitter_kwargs)
108            "parser_kwargs argument in html2creole would be removed in the future!",
109            PendingDeprecationWarning)
110
119            "emitter_kwargs argument in html2creole would be removed in the future!",
120            PendingDeprecationWarning)
121        emitter_kwargs2.update(emitter_kwargs)
140            "parser_kwargs argument in html2textile would be removed in the future!",
141            PendingDeprecationWarning)
142
__init__.py https://bitbucket.org/andersem/python-creole.git | Python | 186 lines
66    if parser_kwargs:
67        warnings.warn("parser_kwargs argument in creole2html would be removed in the future!", PendingDeprecationWarning)
68        parser_kwargs2.update(parser_kwargs)
80    if emitter_kwargs:
81        warnings.warn("emitter_kwargs argument in creole2html would be removed in the future!", PendingDeprecationWarning)
82        emitter_kwargs2.update(emitter_kwargs)
109    if parser_kwargs:
110        warnings.warn("parser_kwargs argument in html2creole would be removed in the future!", PendingDeprecationWarning)
111
117    if emitter_kwargs:
118        warnings.warn("emitter_kwargs argument in html2creole would be removed in the future!", PendingDeprecationWarning)
119        emitter_kwargs2.update(emitter_kwargs)
136    if parser_kwargs:
137        warnings.warn("parser_kwargs argument in html2textile would be removed in the future!", PendingDeprecationWarning)
138
generics.py https://github.com/watc/django-rest-framework.git | Python | 500 lines
114                          'when called without a `page_size` argument.',
115                          PendingDeprecationWarning, stacklevel=2)
116            deprecated_style = True
128                '`get_queryset()` and explicitly raise a 404 on empty querysets.',
129                PendingDeprecationWarning, stacklevel=2
130            )
171                'a *list* of filter backend classes.',
172                PendingDeprecationWarning, stacklevel=2
173            )
195                          'is due to be deprecated.',
196                          PendingDeprecationWarning, stacklevel=2)
197
276                'Use the `lookup_field` attribute instead',
277                PendingDeprecationWarning
278            )
generics.py https://github.com/grimborg/django-rest-framework.git | Python | 454 lines
103                          'when called without a `page_size` argument.',
104                          PendingDeprecationWarning, stacklevel=2)
105            deprecated_style = True
117                '`get_queryset()` and explicitly raise a 404 on empty querysets.',
118                PendingDeprecationWarning, stacklevel=2
119            )
160                'a *list* of filter backend classes.',
161                PendingDeprecationWarning, stacklevel=2
162            )
184                          'is due to be deprecated.',
185                          PendingDeprecationWarning, stacklevel=2)
186
265                'Use the `lookup_field` attribute instead',
266                PendingDeprecationWarning
267            )
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21