[Jython-checkins] jython: Make check_py3k_warnings public.

frank.wierzbicki jython-checkins at python.org
Wed Mar 14 04:09:28 CET 2012


http://hg.python.org/jython/rev/7d761a8c8c0f
changeset:   6326:7d761a8c8c0f
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Mon Mar 12 13:58:52 2012 -0700
summary:
  Make check_py3k_warnings public.

files:
  Lib/test/test_support.py |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -20,7 +20,7 @@
            "is_resource_enabled", "requires", "find_unused_port", "bind_port",
            "fcmp", "have_unicode", "is_jython", "TESTFN", "HOST", "FUZZ",
            "findfile", "verify", "vereq", "sortdict", "check_syntax_error",
-           "open_urlresource", "check_warnings", "_check_py3k_warnings",
+           "open_urlresource", "check_warnings", "check_py3k_warnings",
            "CleanImport", "EnvironmentVarGuard", "captured_output",
            "captured_stdout", "TransientResource", "transient_internet",
            "run_with_locale", "set_memlimit", "bigmemtest", "bigaddrspacetest",
@@ -613,7 +613,7 @@
 
 
 @contextlib.contextmanager
-def _check_py3k_warnings(*filters, **kwargs):
+def check_py3k_warnings(*filters, **kwargs):
     """Context manager to silence py3k warnings.
 
     Accept 2-tuples as positional arguments:
@@ -624,7 +624,7 @@
         (default False)
 
     Without argument, it defaults to:
-        _check_py3k_warnings(("", DeprecationWarning), quiet=False)
+        check_py3k_warnings(("", DeprecationWarning), quiet=False)
     """
     if sys.py3kwarning:
         if not filters:

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list