Patchwork [4,of,5] statfs: rename pygetfstype to getfstype

login
register
mail settings
Submitter Yuya Nishihara
Date March 25, 2017, 10:38 a.m.
Message ID <69a0abd9c61f0dae12d6.1490438330@mimosa>
Download mbox | patch
Permalink /patch/19665/
State Accepted
Headers show

Comments

Yuya Nishihara - March 25, 2017, 10:38 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1490430251 -32400
#      Sat Mar 25 17:24:11 2017 +0900
# Node ID 69a0abd9c61f0dae12d60b4f6fd4ada8288bd451
# Parent  d4f6c6d3f77d40eff1eb597642b10629d31ee1a7
statfs: rename pygetfstype to getfstype

There's no ambiguity now.

Patch

diff --git a/mercurial/osutil.c b/mercurial/osutil.c
--- a/mercurial/osutil.c
+++ b/mercurial/osutil.c
@@ -1079,7 +1079,7 @@  static const char *describefstype(const 
 
 #if defined(HAVE_BSD_STATFS) || defined(HAVE_LINUX_STATFS)
 /* given a directory path, return filesystem type name (best-effort) */
-static PyObject *pygetfstype(PyObject *self, PyObject *args)
+static PyObject *getfstype(PyObject *self, PyObject *args)
 {
 	const char *path = NULL;
 	struct statfs buf;
@@ -1272,7 +1272,7 @@  static PyMethodDef methods[] = {
 	 "set process title (best-effort)\n"},
 #endif
 #if defined(HAVE_BSD_STATFS) || defined(HAVE_LINUX_STATFS)
-	{"getfstype", (PyCFunction)pygetfstype, METH_VARARGS,
+	{"getfstype", (PyCFunction)getfstype, METH_VARARGS,
 	 "get filesystem type (best-effort)\n"},
 #endif
 #endif /* ndef _WIN32 */