summaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2017-11-05 07:37:50 -0600
committerSerhiy Storchaka <storchaka@gmail.com>2017-11-05 15:37:50 +0200
commita5293b4ff2c1b5446947b4986f98ecf5d52432d4 (patch)
treebe2f5e686be63814c02eabc61a899631ec7a08ac /PC
parentcf296537f164abeacd83011239881f75f290ed31 (diff)
downloadcpython-git-a5293b4ff2c1b5446947b4986f98ecf5d52432d4.tar.gz
Fix miscellaneous typos (#4275)
Diffstat (limited to 'PC')
-rw-r--r--PC/getpathp.c4
-rw-r--r--PC/winreg.c6
-rw-r--r--PC/winsound.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index e7be704a9a..9bbc7bf0b2 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -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;
diff --git a/PC/winreg.c b/PC/winreg.c
index 2d665f7318..ddaf3b1abc 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -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)
diff --git a/PC/winsound.c b/PC/winsound.c
index 7feebcbcf4..fd04e1e55b 100644
--- a/PC/winsound.c
+++ b/PC/winsound.c
@@ -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)