100+ results for 'PendingDeprecationWarning'
Not the results you expected?
subclassing.py (https://github.com/theosp/google_appengine.git) Python · 117 lines
16 warn("A Field class whose %s method hasn't been updated to take a "
17 "`connection` argument." % func.__name__,
18 PendingDeprecationWarning, stacklevel=2)
20 def inner(*args, **kwargs):
23 kwargs['connection'] = connection
24 warn("%s has been called without providing a connection argument. " %
25 func.__name__, PendingDeprecationWarning,
26 stacklevel=1)
27 if updated:
41 warn("A Field class whose %s method hasn't been updated to take "
42 "`connection` and `prepared` arguments." % func.__name__,
43 PendingDeprecationWarning, stacklevel=2)
45 def inner(*args, **kwargs):
UserDict.py (https://gitlab.com/nachee1325/todoprv) Python · 213 lines
16 import warnings
17 warnings.warn("Passing 'dict' as keyword argument is "
18 "deprecated", PendingDeprecationWarning,
19 stacklevel=2)
20 else:
75 import warnings
76 warnings.warn("Passing 'dict' as keyword argument is deprecated",
77 PendingDeprecationWarning, stacklevel=2)
78 else:
79 dict = None
memcached.py (https://github.com/Tippr/django.git) Python · 177 lines
list_detail.py (https://github.com/crisbar/curso_python_dga_11.git) Python · 152 lines
__init__.py (https://bitbucket.org/ssaltzman/poet.git) Python · 145 lines
test_archive_util.py (https://gitlab.com/sisfs/G_Music) Python · 269 lines
settings.py (https://github.com/Fandekasp/django-massmedia.git) Python · 211 lines
64 warnings.warn(
65 "settings.MMEDIA_IMAGE_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
66 PendingDeprecationWarning
67 )
71 warnings.warn(
72 "settings.MMEDIA_VIDEO_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
73 PendingDeprecationWarning
74 )
78 warnings.warn(
79 "settings.MMEDIA_AUDIO_EXTS is deprecated; use settings.MASSMEDIA_SETTINGS instead.",
80 PendingDeprecationWarning
81 )
deprecation.py (https://gitlab.com/llndhlov/journly) Python · 147 lines
UniGene.py (https://github.com/timwintle/biopython.git) Python · 228 lines
__init__.py (https://github.com/eric-brechemier/django.git) Python · 108 lines
__init__.py (https://github.com/theosp/google_appengine.git) Python · 161 lines
auth_backends.py (https://github.com/RefuX/applause.git) Python · 253 lines
__init__.py (https://bitbucket.org/taxilian/racecontrol5.git) Python · 104 lines
17 warnings.warn(
18 "settings.DATABASE_* is deprecated; use settings.DATABASES instead.",
19 PendingDeprecationWarning
20 )
46 "Modify ENGINE in the %s database configuration to select "
47 "a backend from 'django.contrib.gis.db.backends'" % alias,
48 PendingDeprecationWarning
49 )
50 if database['ENGINE'] == 'postgresql_psycopg2':
58 "Short names for ENGINE in database configurations are deprecated. "
59 "Prepend %s.ENGINE with 'django.db.backends.'" % alias,
60 PendingDeprecationWarning
61 )
62 full_engine = "django.db.backends.%s" % database['ENGINE']
__init__.py (https://github.com/abstract-open-solutions/ScrumDo.git) Python · 126 lines
__init__.py (https://github.com/rohanza/django.git) Python · 113 lines
regcheck.py (https://github.com/branaway/play.git) Python · 125 lines
hmac.py (https://github.com/akheron/cpython.git) Python · 144 lines
__init__.py (https://github.com/chapmanb/biopython.git) Python · 171 lines
test_tracking.py (https://github.com/arokem/dipy.git) Python · 262 lines
78 warnings.filterwarnings(
79 "ignore", message=descoteaux07_legacy_msg,
80 category=PendingDeprecationWarning)
81 reconst_csd_flow.run(dwi_path, bval_path, bvec_path, mask_path,
82 out_dir=out_dir, extract_pam_values=True)
96 warnings.filterwarnings(
97 "ignore", message=descoteaux07_legacy_msg,
98 category=PendingDeprecationWarning)
99 pf_track_pam.run(pam_path, wm_path, gm_path, csf_path, seeds_path)
100 tractogram_path = \
108 warnings.filterwarnings(
109 "ignore", message=descoteaux07_legacy_msg,
110 category=PendingDeprecationWarning)
111 pf_track_pam.run(pam_path,
112 wm_path,
archive_util.py (https://bitbucket.org/kbengine/kbengine.git) Python · 184 lines
deprecation.py (https://gitlab.com/asmjahid/django) Python · 111 lines
list_box.py (https://github.com/enthought/pyface.git) Python · 151 lines
forms.py (https://github.com/blacktear23/django.git) Python · 145 lines
utils.py (https://github.com/theosp/google_appengine.git) Python · 170 lines
__init__.py (https://github.com/alemacgo/pypy.git) Python · 67 lines
32 'OSError' : 'interp_exceptions.W_OSError',
33 'OverflowError' : 'interp_exceptions.W_OverflowError',
34 'PendingDeprecationWarning' : 'interp_exceptions.W_PendingDeprecationWarning',
35 'ReferenceError' : 'interp_exceptions.W_ReferenceError',
36 'RuntimeError' : 'interp_exceptions.W_RuntimeError',
test_recwarn.py (https://github.com/rillian/firefox.git) Python · 227 lines
test_forecast.py (https://github.com/arokem/dipy.git) Python · 300 lines
47 warnings.filterwarnings(
48 "ignore", message=descoteaux07_legacy_msg,
49 category=PendingDeprecationWarning)
50 fm = ForecastModel(data.gtab,
51 sh_order=data.sh_order,
59 warnings.filterwarnings(
60 "ignore", message=descoteaux07_legacy_msg,
61 category=PendingDeprecationWarning)
62 fodf = f_fit.odf(sphere, clip_negative=False)
63 assert_almost_equal(fodf[fodf < 0].sum(), 0, 2)
73 warnings.filterwarnings(
74 "ignore", message=descoteaux07_legacy_msg,
75 category=PendingDeprecationWarning)
76 fm = ForecastModel(data.gtab, dec_alg='CSD',
77 sphere=data.sphere, lambda_csd=data.lambda_csd)
context_processors.py (https://bitbucket.org/ssaltzman/poet.git) Python · 113 lines
98 "deprecated; use `django.contrib.auth.context_processors.PermLookupDict` " \
99 "instead.",
100 PendingDeprecationWarning
101 )
102 super(PermLookupDict, self).__init__(*args, **kwargs)
109 "deprecated; use `django.contrib.auth.context_processors.PermWrapper` " \
110 "instead.",
111 PendingDeprecationWarning
112 )
113 super(PermWrapper, self).__init__(*args, **kwargs)
__init__.py (https://github.com/aruder77/applause.git) Python · 86 lines
deprecation.py (https://gitlab.com/briankiragu/django) Python · 130 lines
app_directories.py (https://gitlab.com/gregtyka/frankenserver) Python · 74 lines
memcached.py (https://github.com/lmorchard/home-snippets-server-lib.git) Python · 104 lines
errwarning.py (https://gitlab.com/betse/betse) Python · 139 lines
83 Single-shot context manager temporarily ignoring all **deprecation
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
87 this context.
95 return ignoring_warnings(
96 DeprecationWarning,
97 PendingDeprecationWarning,
98 FutureWarning,
99 )
deprecations.py (https://gitlab.com/abhi1tb/build) Python · 259 lines
csrf.py (https://github.com/Tippr/django.git) Python · 79 lines
56 warnings.warn("csrf_response_exempt is deprecated. It no longer performs a "
57 "function, and calls to it can be removed.",
58 PendingDeprecationWarning)
59 return view_func
64 """
65 warnings.warn("csrf_view_exempt is deprecated. Use csrf_exempt instead.",
66 PendingDeprecationWarning)
67 return csrf_exempt(view_func)
fields.py (https://github.com/django-nonrel/mongodb-engine.git) Python · 174 lines
__init__.py (https://github.com/lmorchard/home-snippets-server-lib.git) Python · 103 lines
25 except AttributeError:
26 warn("Authentication backends without a `supports_object_permissions` attribute are deprecated. Please define it in %s." % cls,
27 PendingDeprecationWarning)
28 cls.supports_object_permissions = False
29 try:
31 except AttributeError:
32 warn("Authentication backends without a `supports_anonymous_user` attribute are deprecated. Please define it in %s." % cls,
33 PendingDeprecationWarning)
34 cls.supports_anonymous_user = False
35 return cls()
context_processors.py (https://github.com/theosp/google_appengine.git) Python · 102 lines
23 warnings.warn(
24 "The context processor at `django.core.context_processors.auth` is " "deprecated; use the path `django.contrib.auth.context_processors.auth` " "instead.",
25 PendingDeprecationWarning
26 )
27 from google.appengine._internal.django.contrib.auth.context_processors import auth as auth_context_processor
AbstractPropertyMap.py (https://github.com/timwintle/biopython.git) Python · 134 lines
__init__.py (https://github.com/asavoy/django-model-utils.git) Python · 135 lines
loaders.py (https://github.com/pokutnik/lettuce.git) Python · 150 lines
deprecation.py (https://github.com/pombredanne/pip.git) Python · 68 lines
18 class RemovedInPip8Warning(PipDeprecationWarning, PendingDeprecationWarning):
19 pass
48 # Things that are DeprecationWarnings will be removed in the very
49 # next version of pip. We want these to be more obvious so we
50 # use the ERROR logging level while the PendingDeprecationWarnings
51 # are still have at least 2 versions to go until they are removed
52 # so they can just be warnings.
cache.py (https://bitbucket.org/pcelta/python-django.git) Python · 92 lines
test_warnings.py (https://bitbucket.org/x893/sirflive.git) Python · 89 lines
test_warnings.py (https://github.com/jackygrahamez/DrugDiscovery-Home.git) Python · 105 lines
test_pmf.py (https://github.com/arokem/dipy.git) Python · 138 lines
20 warnings.filterwarnings(
21 "ignore", message=descoteaux07_legacy_msg,
22 category=PendingDeprecationWarning)
23 pmfgen = SHCoeffPmfGen(np.random.random([2, 2, 2, 28]), sphere, None)
24 point = np.array([1, 1, 1], dtype='float')
38 warnings.filterwarnings(
39 "ignore", message=descoteaux07_legacy_msg,
40 category=PendingDeprecationWarning)
41 pmfgen = SHCoeffPmfGen(np.ones([2, 2, 2, 28]), sphere, None)
95 warnings.filterwarnings(
96 "ignore", message=descoteaux07_legacy_msg,
97 category=PendingDeprecationWarning)
98 boot_pmf_gen = BootPmfGen(
99 data, model=tensor_model, sphere=hsph_updated)
tokens.py (https://github.com/blacktear23/django.git) Python · 82 lines
36 if not constant_time_compare(self._make_token_with_timestamp(user, ts), token):
37 # Fallback to Django 1.2 method for compatibility.
38 # PendingDeprecationWarning <- here to remind us to remove this in
39 # Django 1.5
40 if not constant_time_compare(self._make_token_with_timestamp_old(user, ts), token):
deprecation.py (https://github.com/dpritsos/WEGA.git) Python · 222 lines
__init__.py (https://github.com/lmorchard/home-snippets-server-lib.git) Python · 111 lines
_warnings_test.py (https://bitbucket.org/mdavid/dlr.git) Python · 112 lines
26 #--GLOBALS---------------------------------------------------------------------
27 EXPECTED = [] # expected output (ignoring filename, lineno, and line)
28 WARN_TYPES = [Warning, UserWarning, PendingDeprecationWarning, SyntaxWarning,
29 RuntimeWarning, FutureWarning, ImportWarning, UnicodeWarning,
30 BytesWarning]
loaders.py (https://github.com/eric-brechemier/django.git) Python · 148 lines
storage.py (https://github.com/zodiak/django_ondev.git) Python · 95 lines
forms.py (https://github.com/WoLpH/django-tcc.git) Python · 163 lines
__init__.py (https://github.com/gabelula/b-counted.git) Python · 101 lines
16 warnings.warn(
17 "settings.DATABASE_* is deprecated; use settings.DATABASES instead.",
18 PendingDeprecationWarning
19 )
43 "Modify ENGINE in the %s database configuration to select "
44 "a backend from 'django.contrib.gis.db.backends'" % alias,
45 PendingDeprecationWarning
46 )
47 if database['ENGINE'] == 'postgresql_psycopg2':
55 "Short names for ENGINE in database configurations are deprecated. "
56 "Prepend %s.ENGINE with 'django.db.backends.'" % alias,
57 PendingDeprecationWarning
58 )
59 full_engine = "django.db.backends.%s" % database['ENGINE']
cache.py (https://github.com/Tippr/django.git) Python · 91 lines
context_processors.py (https://github.com/lmorchard/home-snippets-server-lib.git) Python · 104 lines
testing_support.py (https://github.com/behave/behave.git) Python · 94 lines
itercompat.py (https://github.com/ptone/django-oldmaster.git) Python · 35 lines
20 def product(*args, **kwds):
21 # PendingDeprecationWarning in 1.5, remove this comment when the Deprecations
22 # will have been advanced for 1.5
23 warnings.warn("django.utils.itercompat.product is deprecated; use the native version instead",
24 PendingDeprecationWarning)
25 return itertools.product(*args, **kwds)
27 def all(iterable):
28 warnings.warn("django.utils.itercompat.all is deprecated; use the native version instead",
29 PendingDeprecationWarning)
30 return __builtin__.all(iterable)
deprecations.py (https://gitlab.com/ztane/sqlalchemy) Python · 143 lines
test_shore.py (https://github.com/arokem/dipy.git) Python · 105 lines
62 warnings.filterwarnings(
63 "ignore", message=descoteaux07_legacy_msg,
64 category=PendingDeprecationWarning)
65 asmfit = asm.fit(data.S)
66 eap = asmfit.pdf_grid(11, 20e-03)
75 warnings.filterwarnings(
76 "ignore", message=descoteaux07_legacy_msg,
77 category=PendingDeprecationWarning)
78 asmfit = asm.fit(data.S)
79 npt.assert_almost_equal(compute_e0(asmfit), 1)
89 warnings.filterwarnings(
90 "ignore", message=descoteaux07_legacy_msg,
91 category=PendingDeprecationWarning)
92 asmfit = asm.fit(data.S)
93 npt.assert_almost_equal(compute_e0(asmfit), 1)
warnings.py (https://gitlab.com/phongphans61/machine-learning-tictactoe) Python · 139 lines
48 # If user is not explicitly configuring warning filters, show deprecation warnings by default (#2908).
49 warnings.filterwarnings("always", category=DeprecationWarning)
50 warnings.filterwarnings("always", category=PendingDeprecationWarning)
52 apply_warning_filters(config_filters, cmdline_filters)
eggs.py (https://github.com/pokutnik/lettuce.git) Python · 39 lines
test_shore_metrics.py (https://github.com/arokem/dipy.git) Python · 117 lines
53 warnings.filterwarnings(
54 "ignore", message=descoteaux07_legacy_msg,
55 category=PendingDeprecationWarning)
56 asmfit = asm.fit(S)
57 c_shore = asmfit.shore_coeff
60 warnings.filterwarnings(
61 "ignore", message=descoteaux07_legacy_msg,
62 category=PendingDeprecationWarning)
63 cmat = shore_matrix(radial_order, zeta, gtab)
64 S_reconst = np.dot(cmat, c_shore)
82 warnings.filterwarnings(
83 "ignore", message=descoteaux07_legacy_msg,
84 category=PendingDeprecationWarning)
85 pdf_discrete = asmfit.pdf_grid(17, 40e-3)
86 integral = pdf_discrete.sum()
headerid.py (https://gitlab.com/Haritiana/Python-Markdown) Python · 97 lines
exceptions.py (https://github.com/catalanojuan/celery.git) Python · 92 lines
util.py (https://github.com/HolodeckJizzmopper/bitHopper.git) Python · 110 lines
image.py (https://github.com/mozilla/moztrap-vendor-lib.git) Python · 154 lines
utils.py (https://github.com/enlaces/curso_python_dga_11.git) Python · 63 lines
utils.py (https://github.com/zodiak/django_ondev.git) Python · 165 lines
16 "The staticfiles.utils.get_files_for_app utility function is "
17 "deprecated. Use staticfiles.storage.AppStaticStorage.get_files "
18 "instead.", PendingDeprecationWarning)
19 return AppStaticStorage(app).get_files(ignore_patterns)
27 "The staticfiles.utils.get_app_prefix utility function is "
28 "deprecated. Use staticfiles.storage.AppStaticStorage.get_prefix "
29 "instead.", PendingDeprecationWarning)
30 return AppStaticStorage(app).get_prefix()
tests.py (https://github.com/niran/django-old.git) Python · 123 lines
test.py (https://github.com/theosp/google_appengine.git) Python · 40 lines
cz.py (https://github.com/blacktear23/django.git) Python · 105 lines
exceptions.py (https://github.com/ayshih/sunpy.git) Python · 105 lines
9 __all__ = ["NoMapsInFileError",
10 "SunpyWarning", "SunpyUserWarning", "SunpyDeprecationWarning",
11 "SunpyPendingDeprecationWarning", "SunpyMetadataWarning",
12 "warn_user", "warn_deprecated", "warn_metadata"]
54 class SunpyPendingDeprecationWarning(PendingDeprecationWarning, SunpyWarning):
55 """
56 A warning class to indicate a soon-to-be deprecated feature.
context_processors.py (https://github.com/aruder77/applause.git) Python · 112 lines
zip_loader.py (https://github.com/crass/app-engine-console.git) Python · 69 lines
services.py (https://gitlab.com/urbanjunglestudio/whambush-api) Python · 117 lines
edit.py (https://github.com/mozilla/moztrap-vendor-lib.git) Python · 280 lines
runtests.py (https://gitlab.com/asmjahid/opps) Python · 91 lines
deprecations.py (https://bitbucket.org/stavrossk/maraschino.git) Python · 118 lines
18 def warn_pending_deprecation(msg, stacklevel=3):
19 warnings.warn(msg, exc.SAPendingDeprecationWarning, stacklevel=stacklevel)
21 def deprecated(version, message=None, add_deprecation_to_docstring=True):
77 def decorate(fn):
78 return _decorate_with_warning(
79 fn, exc.SAPendingDeprecationWarning,
80 message % dict(func=fn.__name__), header)
81 return decorate
warnings.py (https://gitlab.com/abhi1tb/build) Python · 61 lines
test_reconst_csa_csd.py (https://github.com/arokem/dipy.git) Python · 137 lines
trans_null.py (https://github.com/lmorchard/home-snippets-server-lib.git) Python · 72 lines
60 '`django.utils.translation.get_date_formats` is deprecated. '
61 'Please update your code to use the new i18n aware formatting.',
62 PendingDeprecationWarning
63 )
64 return settings.DATE_FORMAT, settings.DATETIME_FORMAT, settings.TIME_FORMAT
68 '`django.utils.translation.get_partial_date_formats` is deprecated. '
69 'Please update your code to use the new i18n aware formatting.',
70 PendingDeprecationWarning
71 )
72 return settings.YEAR_MONTH_FORMAT, settings.MONTH_DAY_FORMAT
exceptions.py (https://github.com/mozilla/kuma-lib.git) Python · 100 lines
expandable_panel.py (https://github.com/enthought/pyface.git) Python · 168 lines
reset.py (https://github.com/blacktear23/django.git) Python · 63 lines
__init__.py (https://github.com/straup/recipes.git) Python · 93 lines
31 'args will be deprecated in version 2.6 and raise an error in version '
32 '2.7. See the Release Notes for Python-Markdown version 2.5 for more info.',
33 PendingDeprecationWarning)
34 # check for configs kwarg for backward compat.
35 if 'configs' in kwargs.keys():
40 '2.6 and raise an error in version 2.7. See the Release Notes for '
41 'Python-Markdown version 2.5 for more info.',
42 PendingDeprecationWarning)
43 # finally, use kwargs
44 self.setConfigs(kwargs)
exceptions.py (https://github.com/ionelmc/celery.git) Python · 162 lines
19 'TimeoutError', 'MaxRetriesExceededError', 'Retry',
20 'TaskRevokedError', 'NotConfigured', 'AlwaysEagerIgnored',
21 'InvalidTaskError', 'ChordError', 'CPendingDeprecationWarning',
22 'CDeprecationWarning', 'FixupWarning', 'DuplicateNodenameWarning',
23 'SoftTimeLimitExceeded', 'TimeLimitExceeded', 'WorkerLostError',
149 class CPendingDeprecationWarning(PendingDeprecationWarning):
150 pass
test_cross_validation.py (https://github.com/arokem/dipy.git) Python · 132 lines
81 warnings.filterwarnings(
82 "ignore", message=descoteaux07_legacy_msg,
83 category=PendingDeprecationWarning)
84 sm = csd.ConstrainedSphericalDeconvModel(gtab, response)
85 np.random.seed(12345)
88 warnings.filterwarnings(
89 "ignore", message=descoteaux07_legacy_msg,
90 category=PendingDeprecationWarning)
91 kf_xval = xval.kfold_xval(sm, S, 2, response, sh_order=2)
92 # Because of the regularization, COD is not going to be perfect here:
104 warnings.filterwarnings(
105 "ignore", message=descoteaux07_legacy_msg,
106 category=PendingDeprecationWarning)
107 kf_xval = xval.kfold_xval(sm, S, 2, response, sh_order=2,
108 mask=mask)
models.py (https://github.com/asavoy/django-model-utils.git) Python · 133 lines
__init__.py (https://github.com/eric-brechemier/django.git) Python · 100 lines
23 if not hasattr(cls, "supports_object_permissions"):
24 warn("Authentication backends without a `supports_object_permissions` attribute are deprecated. Please define it in %s." % cls,
25 PendingDeprecationWarning)
26 cls.supports_object_permissions = False
28 if not hasattr(cls, 'supports_anonymous_user'):
29 warn("Authentication backends without a `supports_anonymous_user` attribute are deprecated. Please define it in %s." % cls,
30 PendingDeprecationWarning)
31 cls.supports_anonymous_user = False
32 return cls()
ExceptionHandlers.py (https://gitlab.com/SplatoonModdingHub/PTVS) Python · 176 lines
43 except OSError: pass
44 except OverflowError: pass
45 except PendingDeprecationWarning: pass
46 except ReferenceError: pass
47 except RuntimeError: pass
69 try: pass
70 except (ArithmeticError, AssertionError, AttributeError, BaseException, BufferError, BytesWarning, DeprecationWarning, EOFError, EnvironmentError, Exception, FloatingPointError, FutureWarning, GeneratorExit, IOError, ImportError, ImportWarning, IndentationError, IndexError, KeyError, KeyboardInterrupt, LookupError, MemoryError, NameError, NotImplementedError, OSError, OverflowError, PendingDeprecationWarning, ReferenceError, RuntimeError, RuntimeWarning, StandardError, StopIteration, SyntaxError, SyntaxWarning, SystemError, SystemExit, TabError, TypeError, UnboundLocalError, UnicodeDecodeError, UnicodeEncodeError, UnicodeError, UnicodeTranslateError, UnicodeWarning, UserWarning, ValueError, Warning, WindowsError, ZeroDivisionError): pass
72 try: pass
97 except OSError: pass
98 except OverflowError: pass
99 except PendingDeprecationWarning: pass
100 except ReferenceError: pass
101 except RuntimeError: pass
static.py (https://github.com/crisbar/curso_python_dga_11.git) Python · 41 lines
views.py (https://github.com/emperorcezar/django-envelope.git) Python · 127 lines
test_prob_direction_getter.py (https://github.com/arokem/dipy.git) Python · 102 lines
37 warnings.filterwarnings(
38 "ignore", message=descoteaux07_legacy_msg,
39 category=PendingDeprecationWarning)
40 dg = ProbabilisticDirectionGetter.from_shcoeff(
41 fit.shm_coeff, 90, unit_octahedron)
69 warnings.filterwarnings(
70 "ignore", message=tournier07_legacy_msg,
71 category=PendingDeprecationWarning)
73 dg = ProbabilisticDirectionGetter.from_shcoeff(
__init__.py (https://github.com/mozilla/moztrap-vendor-lib.git) Python · 94 lines
utils.py (https://github.com/fccoelho/mayan.git) Python · 85 lines
simplejson.py (https://github.com/theosp/google_appengine.git) Python · 31 lines
itercompat.py (https://github.com/theosp/google_appengine.git) Python · 46 lines
__init__.py (https://github.com/mozilla/moztrap-vendor-lib.git) Python · 96 lines
50 def _backend(self):
51 warnings.warn("Accessing django.db.backend is deprecated.",
52 PendingDeprecationWarning, stacklevel=2)
53 return load_backend(connections[DEFAULT_DB_ALIAS].settings_dict['ENGINE'])
67 warnings.warn(
68 "close_connection is superseded by close_old_connections.",
69 PendingDeprecationWarning, stacklevel=2)
70 # Avoid circular imports
71 from django.db import transaction
test_node2vec.py (https://github.com/VHRanger/graph2vec.git) Python · 234 lines
tests.py (https://github.com/blacktear23/django.git) Python · 78 lines
31 def test_blank(self):
32 """
33 If blank, no PendingDeprecationWarning error will be raised, even though it
34 doesn't end in a slash.
35 """
50 def test_no_end_slash(self):
51 """
52 MEDIA_URL raises an PendingDeprecationWarning error if it doesn't end in a
53 slash.
54 """
55 import warnings
56 warnings.filterwarnings('error', 'If set, MEDIA_URL must end with a slash', PendingDeprecationWarning)
58 def setattr_settings(settings_module, attr, value):
builtins.py (https://gitlab.com/pierreEffiScience/TwitterClustering) Python · 125 lines
defaults.py (https://github.com/mozilla/moztrap-vendor-lib.git) Python · 91 lines
87 "django.views.defaults.shortcut will be removed in Django 1.8. "
88 "Import it from django.contrib.contenttypes.views instead.",
89 PendingDeprecationWarning, stacklevel=2)
90 from django.contrib.contenttypes.views import shortcut as real_shortcut
91 return real_shortcut(request, content_type_id, object_id)