summaryrefslogtreecommitdiff
path: root/lib/python2.7/plat-mac/Carbon/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/plat-mac/Carbon/__init__.py')
-rw-r--r--lib/python2.7/plat-mac/Carbon/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python2.7/plat-mac/Carbon/__init__.py b/lib/python2.7/plat-mac/Carbon/__init__.py
new file mode 100644
index 0000000..37a9ae3
--- /dev/null
+++ b/lib/python2.7/plat-mac/Carbon/__init__.py
@@ -0,0 +1,7 @@
+# Filter out warnings about signed/unsigned constants
+import warnings
+warnings.filterwarnings("ignore", "", FutureWarning, ".*Controls")
+warnings.filterwarnings("ignore", "", FutureWarning, ".*MacTextEditor")
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the Carbon package is removed.", stacklevel=2)