Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6dba6bc

Browse files
committed
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.
1 parent 6af5bbb commit 6dba6bc

45 files changed

Lines changed: 135 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Mac/Lib/lib-compat/AE.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.AE import *

Mac/Lib/lib-compat/App.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.App import *

Mac/Lib/lib-compat/Appearance.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.Appearance import *

Mac/Lib/lib-compat/AppleEvents.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.AppleEvents import *

Mac/Lib/lib-compat/Balloons.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.Balloons import *

Mac/Lib/lib-compat/CF.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.CF import *

Mac/Lib/lib-compat/Cm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.Cm import *

Mac/Lib/lib-compat/Components.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.Components import *
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.ControlAccessor import *

Mac/Lib/lib-compat/Controls.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import warnings
2+
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
3+
DeprecationWarning, stacklevel=2)
14
from Carbon.Controls import *

0 commit comments

Comments
 (0)