Skip to content

Commit f77d7ab

Browse files
committed
fix recurring typo: occured --> occurred
(already fixed in Python trunk)
1 parent e39983b commit f77d7ab

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def safeimport(path, forceload=0, cache={}):
264264
# Did the error occur before or after the module was found?
265265
(exc, value, tb) = info = sys.exc_info()
266266
if path in sys.modules:
267-
# An error occured while executing the imported module.
267+
# An error occurred while executing the imported module.
268268
raise ErrorDuringImport(sys.modules[path].__file__, info)
269269
elif exc is SyntaxError:
270270
# A SyntaxError occurred before we could execute the module.

Lib/test/test_dircache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_listdir(self):
4646

4747
if sys.platform[:3] not in ('win', 'os2'):
4848
# Sadly, dircache has the same granularity as stat.mtime, and so
49-
# can't notice any changes that occured within 1 sec of the last
49+
# can't notice any changes that occurred within 1 sec of the last
5050
# time it examined a directory.
5151
time.sleep(1)
5252
self.writeTemp("test1")

Lib/test/test_threadsignals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def registerSignals((for_usr1, for_usr2, for_alrm)):
2121
return usr1, usr2, alrm
2222

2323

24-
# The signal handler. Just note that the signal occured and
24+
# The signal handler. Just note that the signal occurred and
2525
# from who.
2626
def handle_signals(sig,frame):
2727
signal_blackboard[sig]['tripped'] += 1

Lib/trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def names(self, filename, modulename):
133133
# the ignore list
134134
n = len(mod)
135135
# (will not overflow since if the first n characters are the
136-
# same and the name has not already occured, then the size
136+
# same and the name has not already occurred, then the size
137137
# of "name" is greater than that of "mod")
138138
if mod == modulename[:n] and modulename[n] == '.':
139139
self._ignore[modulename] = 1

Mac/Tools/IDE/Wsocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class ConnectionUI:
163163
def settotal(int total): gets called when the connection knows the data size
164164
def setcurrent(int current): gets called when some new data has arrived
165165
def done(): gets called when the transaction is complete
166-
def error(type, value, tb): gets called wheneven an error occured
166+
def error(type, value, tb): gets called wheneven an error occurred
167167
"""
168168

169169
def __init__(self, settotal_func, setcurrent_func, done_func, error_func):

Tools/msi/uisample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@
13931393
(1932, u'The Windows Installer service cannot update the protected Windows file [2]. {{Package version: [3], OS Protected version: [4], SFP Error: [5]}}'),
13941394
(1933, u'The Windows Installer service cannot update one or more protected Windows files. {{SFP Error: [2]. List of protected files:\\r\\n[3]}}'),
13951395
(1934, u'User installations are disabled via policy on the machine.'),
1396-
(1935, u'An error occured during the installation of assembly component [2]. HRESULT: [3]. {{assembly interface: [4], function: [5], assembly name: [6]}}'),
1396+
(1935, u'An error occurred during the installation of assembly component [2]. HRESULT: [3]. {{assembly interface: [4], function: [5], assembly name: [6]}}'),
13971397
]
13981398

13991399
tables=['AdminExecuteSequence', 'AdminUISequence', 'AdvtExecuteSequence', 'BBControl', 'Billboard', 'Binary', 'CheckBox', 'Property', 'ComboBox', 'Control', 'ListBox', 'ActionText', 'ControlCondition', 'ControlEvent', 'Dialog', 'EventMapping', 'InstallExecuteSequence', 'InstallUISequence', 'ListView', 'RadioButton', 'TextStyle', 'UIText', '_Validation', 'Error']

0 commit comments

Comments
 (0)