summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-03-31 01:51:45 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-03-31 01:51:45 (GMT)
commit2a691a814914a9d2b2188cac25426543a14a8500 (patch)
treef185d13c060efb0cb0877df705aba3ed62e96434 /Lib/plat-mac/lib-scriptpackages
parent7315bad3c4be4c0053e8f98d8410009238b98af8 (diff)
downloadcpython-2a691a814914a9d2b2188cac25426543a14a8500.zip
cpython-2a691a814914a9d2b2188cac25426543a14a8500.tar.gz
cpython-2a691a814914a9d2b2188cac25426543a14a8500.tar.bz2
Merged revisions 62021,62029,62035-62038,62043-62044,62052-62053 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r62021 | benjamin.peterson | 2008-03-28 18:11:01 -0500 (Fri, 28 Mar 2008) | 2 lines NIL => NULL ........ r62029 | amaury.forgeotdarc | 2008-03-28 20:42:31 -0500 (Fri, 28 Mar 2008) | 3 lines Correctly call the base class tearDown(); otherwise running test_logging twice produce the errors we see on all buildbots ........ r62035 | raymond.hettinger | 2008-03-29 05:42:07 -0500 (Sat, 29 Mar 2008) | 1 line Be explicit about what efficient means. ........ r62036 | georg.brandl | 2008-03-29 06:46:18 -0500 (Sat, 29 Mar 2008) | 2 lines Fix capitalization. ........ r62037 | amaury.forgeotdarc | 2008-03-29 07:42:54 -0500 (Sat, 29 Mar 2008) | 5 lines lib2to3 should install a logging handler only when run as a main program, not when used as a library. This may please the buildbots, which fail when test_lib2to3 is run before test_logging. ........ r62043 | benjamin.peterson | 2008-03-29 10:24:25 -0500 (Sat, 29 Mar 2008) | 3 lines #2503 make singletons compared with "is" not == or != Thanks to Wummel for the patch ........ r62044 | gerhard.haering | 2008-03-29 14:11:52 -0500 (Sat, 29 Mar 2008) | 2 lines Documented the lastrowid attribute. ........ r62052 | benjamin.peterson | 2008-03-30 14:35:10 -0500 (Sun, 30 Mar 2008) | 2 lines Updated README regarding doc formats ........ r62053 | georg.brandl | 2008-03-30 14:41:39 -0500 (Sun, 30 Mar 2008) | 2 lines The other download formats will be available for 2.6 too. ........
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages')
-rw-r--r--Lib/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py11
-rw-r--r--Lib/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py29
-rw-r--r--Lib/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py2
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py7
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py2
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py6
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py10
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py2
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Netscape/Required_suite.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py2
-rw-r--r--Lib/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py15
-rw-r--r--Lib/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py8
-rw-r--r--Lib/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py2
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py2
-rw-r--r--Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py7
17 files changed, 62 insertions, 55 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py
index 1106937..ab1fd6a 100644
--- a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py
@@ -51,7 +51,7 @@ class CodeWarrior_suite_Events:
_subcode = 'MAKE'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -135,7 +135,8 @@ class CodeWarrior_suite_Events:
_subcode = 'EXPT'
aetools.keysubst(_arguments, self._argmap_export)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _arguments: raise TypeError('No optional args expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -154,7 +155,7 @@ class CodeWarrior_suite_Events:
_subcode = 'RMOB'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -193,7 +194,7 @@ class CodeWarrior_suite_Events:
_subcode = 'RUN '
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -232,7 +233,7 @@ class CodeWarrior_suite_Events:
_subcode = 'UP2D'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py
index 4a9cc5e..48f42fd 100644
--- a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py
@@ -72,7 +72,7 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'ClsP'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -190,7 +190,7 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'GDoc'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -217,7 +217,8 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'Gref'
aetools.keysubst(_arguments, self._argmap_Get_Preferences)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _arguments: raise TypeError('No optional args expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -263,7 +264,7 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'GetP'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -283,7 +284,7 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'GSeg'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -324,7 +325,7 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'NsCl'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -410,7 +411,8 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'Make'
aetools.keysubst(_arguments, self._argmap_Make_Project)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _arguments: raise TypeError('No optional args expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -503,7 +505,7 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'RemB'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -543,7 +545,7 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'ReFP'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -570,7 +572,8 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'RunP'
aetools.keysubst(_arguments, self._argmap_Run_Project)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _arguments: raise TypeError('No optional args expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -682,7 +685,8 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'Pref'
aetools.keysubst(_arguments, self._argmap_Set_Preferences)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _arguments: raise TypeError('No optional args expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -778,7 +782,8 @@ class Metrowerks_Shell_Suite_Events:
_subcode = 'UpdP'
aetools.keysubst(_arguments, self._argmap_Update_Project)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _arguments: raise TypeError('No optional args expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py
index 54deabb..a0df41e 100644
--- a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py
@@ -115,7 +115,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py b/Lib/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py
index 7c902fb..cc6ef6f 100644
--- a/Lib/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py
@@ -61,7 +61,7 @@ class Required_Suite_Events(Required_Suite_Events):
_subcode = 'quit'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -80,7 +80,7 @@ class Required_Suite_Events(Required_Suite_Events):
_subcode = 'oapp'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py b/Lib/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py
index 78c58c8..a7e4a8c 100644
--- a/Lib/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py
@@ -42,7 +42,7 @@ class Web_Browser_Suite_Events:
_subcode = 'CLSA'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -69,7 +69,8 @@ class Web_Browser_Suite_Events:
_subcode = 'CLOS'
aetools.keysubst(_arguments, self._argmap_CloseWindow)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _arguments: raise TypeError('No optional args expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -110,7 +111,7 @@ class Web_Browser_Suite_Events:
_subcode = 'LSTW'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py b/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py
index 4afe48a..3433d7a 100644
--- a/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py
+++ b/Lib/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py
@@ -20,7 +20,7 @@ class Finder_Basics_Events:
_subcode = 'copy'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py b/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py
index c2eb48a..fc9da2e 100644
--- a/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py
@@ -20,7 +20,7 @@ class Legacy_suite_Events:
_subcode = 'rest'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -39,7 +39,7 @@ class Legacy_suite_Events:
_subcode = 'shut'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -58,7 +58,7 @@ class Legacy_suite_Events:
_subcode = 'slep'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py b/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py
index ff28486..ff75edc 100644
--- a/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py
@@ -179,7 +179,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -285,7 +285,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_subcode = 'quit'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py b/Lib/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py
index 21a28d8..89cb37f 100644
--- a/Lib/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py
@@ -21,7 +21,7 @@ class Mozilla_suite_Events:
_subcode = 'Impt'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -41,7 +41,7 @@ class Mozilla_suite_Events:
_subcode = 'upro'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -61,7 +61,7 @@ class Mozilla_suite_Events:
_subcode = 'wurl'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -126,7 +126,7 @@ class Mozilla_suite_Events:
_subcode = 'addr'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -165,7 +165,7 @@ class Mozilla_suite_Events:
_subcode = 'prfl'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py b/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py
index a0c84b2..a5dd228 100644
--- a/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py
+++ b/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py
@@ -25,7 +25,7 @@ class PowerPlant_Events:
_subcode = 'sttg'
aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Netscape/Required_suite.py b/Lib/plat-mac/lib-scriptpackages/Netscape/Required_suite.py
index 8767ac3..a7d3e96 100644
--- a/Lib/plat-mac/lib-scriptpackages/Netscape/Required_suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Netscape/Required_suite.py
@@ -61,7 +61,7 @@ class Required_suite_Events(Required_Suite_Events):
_subcode = 'quit'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -80,7 +80,7 @@ class Required_suite_Events(Required_Suite_Events):
_subcode = 'oapp'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py b/Lib/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py
index 2bfa2a5..24a89e7 100644
--- a/Lib/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py
@@ -154,7 +154,7 @@ class WorldWideWeb_suite_Events:
_subcode = 'LSTW'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py b/Lib/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py
index 5e710b9..e5acd48 100644
--- a/Lib/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py
@@ -268,7 +268,7 @@ class AppleScript_Suite_Events:
_subcode = 'actv'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -371,7 +371,7 @@ class AppleScript_Suite_Events:
_subcode = 'tend'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -443,7 +443,7 @@ class AppleScript_Suite_Events:
_subcode = 'idle'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -462,7 +462,7 @@ class AppleScript_Suite_Events:
_subcode = 'noop'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -585,7 +585,7 @@ class AppleScript_Suite_Events:
_subcode = 'log1'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -625,7 +625,8 @@ class AppleScript_Suite_Events:
_subcode = 'log0'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
+
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -644,7 +645,7 @@ class AppleScript_Suite_Events:
_subcode = 'tell'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py b/Lib/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py
index 187ea50..e305668 100644
--- a/Lib/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py
@@ -255,7 +255,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -345,7 +345,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_subcode = 'quit'
aetools.keysubst(_arguments, self._argmap_quit)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
@@ -365,7 +365,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_subcode = 'rapp'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -384,7 +384,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_subcode = 'oapp'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py
index 5778288..a0cd3da 100644
--- a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py
@@ -175,7 +175,7 @@ class Standard_Suite_Events:
_subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py b/Lib/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py
index 61a27a8..0020e52 100644
--- a/Lib/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py
@@ -175,7 +175,7 @@ class Standard_Suite_Events:
_subcode = 'crel'
aetools.keysubst(_arguments, self._argmap_make)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
diff --git a/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py b/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py
index 7d5abbd..a5ee8c6 100644
--- a/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py
@@ -37,8 +37,7 @@ class builtin_Suite_Events:
_subcode = 'oapp'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
-
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
@@ -56,7 +55,7 @@ class builtin_Suite_Events:
_subcode = 'rapp'
if _arguments: raise TypeError('No optional args expected')
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
_reply, _arguments, _attributes = self.send(_code, _subcode,
@@ -100,7 +99,7 @@ class builtin_Suite_Events:
_subcode = 'quit'
aetools.keysubst(_arguments, self._argmap_quit)
- if _no_object != None: raise TypeError('No direct arg expected')
+ if _no_object is not None: raise TypeError('No direct arg expected')
aetools.enumsubst(_arguments, 'savo', _Enum_savo)