mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix miscellaneous typos (#4275)
This commit is contained in:
parent
cf296537f1
commit
a5293b4ff2
50 changed files with 82 additions and 82 deletions
|
@ -395,7 +395,7 @@ getpythonregpath(HKEY keyBase, int skipcore)
|
|||
if (skipcore)
|
||||
*szCur = '\0';
|
||||
else {
|
||||
/* If we have no values, we dont need a ';' */
|
||||
/* If we have no values, we don't need a ';' */
|
||||
if (numKeys) {
|
||||
*(szCur++) = L';';
|
||||
dataSize--;
|
||||
|
@ -718,7 +718,7 @@ calculate_path(void)
|
|||
machinepath = getpythonregpath(HKEY_LOCAL_MACHINE, skiphome);
|
||||
userpath = getpythonregpath(HKEY_CURRENT_USER, skiphome);
|
||||
#endif
|
||||
/* We only use the default relative PYTHONPATH if we havent
|
||||
/* We only use the default relative PYTHONPATH if we haven't
|
||||
anything better to use! */
|
||||
skipdefault = envpath!=NULL || pythonhome!=NULL || \
|
||||
machinepath!=NULL || userpath!=NULL;
|
||||
|
|
|
@ -25,7 +25,7 @@ static char errNotAHandle[] = "Object is not a handle";
|
|||
|
||||
/* The win32api module reports the function name that failed,
|
||||
but this concept is not in the Python core.
|
||||
Hopefully it will one day, and in the meantime I dont
|
||||
Hopefully it will one day, and in the meantime I don't
|
||||
want to lose this info...
|
||||
*/
|
||||
#define PyErr_SetFromWindowsErrWithFunction(rc, fnname) \
|
||||
|
@ -506,9 +506,9 @@ PyWinObject_CloseHKEY(PyObject *obHandle)
|
|||
** Note that fixupMultiSZ and countString have both had changes
|
||||
** made to support "incorrect strings". The registry specification
|
||||
** calls for strings to be terminated with 2 null bytes. It seems
|
||||
** some commercial packages install strings which dont conform,
|
||||
** some commercial packages install strings which don't conform,
|
||||
** causing this code to fail - however, "regedit" etc still work
|
||||
** with these strings (ie only we dont!).
|
||||
** with these strings (ie only we don't!).
|
||||
*/
|
||||
static void
|
||||
fixupMultiSZ(wchar_t **str, wchar_t *data, int len)
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
# Start playing the first bit of wav file asynchronously
|
||||
winsound.PlaySound('c:/windows/media/Chord.wav',
|
||||
winsound.SND_FILENAME|winsound.SND_ASYNC)
|
||||
# But dont let it go for too long...
|
||||
# But don't let it go for too long...
|
||||
time.sleep(0.1)
|
||||
# ...Before stopping it
|
||||
winsound.PlaySound(None, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue