summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-17 07:54:55 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-17 07:54:55 (GMT)
commitca56dd4767617a2f5e946130de4beb06442a5cd5 (patch)
tree8697f0e83d6b4f3758eaf4b89abc944b6e6db71f /PC
parentfd2f85d6e4e8abc9c943cf56cf45527d522c7882 (diff)
downloadcpython-ca56dd4767617a2f5e946130de4beb06442a5cd5.zip
cpython-ca56dd4767617a2f5e946130de4beb06442a5cd5.tar.gz
cpython-ca56dd4767617a2f5e946130de4beb06442a5cd5.tar.bz2
Issue #28139: Fix messed up indentation
Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
Diffstat (limited to 'PC')
-rw-r--r--PC/bdist_wininst/install.c18
-rw-r--r--PC/os2vacpp/getpathp.c18
2 files changed, 18 insertions, 18 deletions
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c
index 6e6766f..f1cc7fe 100644
--- a/PC/bdist_wininst/install.c
+++ b/PC/bdist_wininst/install.c
@@ -1617,16 +1617,16 @@ SelectPythonDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
PropSheet_SetWizButtons(GetParent(hwnd),
PSWIZB_BACK | PSWIZB_NEXT);
/* Get the python directory */
- ivi = (InstalledVersionInfo *)
+ ivi = (InstalledVersionInfo *)
SendDlgItemMessage(hwnd,
- IDC_VERSIONS_LIST,
- LB_GETITEMDATA,
- id,
- 0);
- hkey_root = ivi->hkey;
- strcpy(python_dir, ivi->prefix);
- SetDlgItemText(hwnd, IDC_PATH, python_dir);
- /* retrieve the python version and pythondll to use */
+ IDC_VERSIONS_LIST,
+ LB_GETITEMDATA,
+ id,
+ 0);
+ hkey_root = ivi->hkey;
+ strcpy(python_dir, ivi->prefix);
+ SetDlgItemText(hwnd, IDC_PATH, python_dir);
+ /* retrieve the python version and pythondll to use */
result = SendDlgItemMessage(hwnd, IDC_VERSIONS_LIST,
LB_GETTEXTLEN, (WPARAM)id, 0);
pbuf = (char *)malloc(result + 1);
diff --git a/PC/os2vacpp/getpathp.c b/PC/os2vacpp/getpathp.c
index 5bc2827..b1307d7 100644
--- a/PC/os2vacpp/getpathp.c
+++ b/PC/os2vacpp/getpathp.c
@@ -325,18 +325,18 @@ calculate_path(void)
pythonhome = NULL;
}
else {
- char *delim;
+ char *delim;
strcpy(prefix, pythonhome);
- /* Extract Any Optional Trailing EXEC_PREFIX */
- /* e.g. PYTHONHOME=<prefix>:<exec_prefix> */
- delim = strchr(prefix, DELIM);
- if (delim) {
- *delim = '\0';
- strcpy(exec_prefix, delim+1);
- } else
- strcpy(exec_prefix, EXEC_PREFIX);
+ /* Extract Any Optional Trailing EXEC_PREFIX */
+ /* e.g. PYTHONHOME=<prefix>:<exec_prefix> */
+ delim = strchr(prefix, DELIM);
+ if (delim) {
+ *delim = '\0';
+ strcpy(exec_prefix, delim+1);
+ } else
+ strcpy(exec_prefix, EXEC_PREFIX);
}
if (envpath && *envpath == '\0')