JanKanis avatar JanKanis committed 31743f5

fix leftover cruft and whitespace

Comments (0)

Files changed (2)

inotify/_inotify.c

 
 /* for older pythons */
 #ifndef Py_TYPE
-    #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
+	#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
 #endif
 
 /* for Python 2.5 and below */
 #ifndef PyVarObject_HEAD_INIT
-    #define PyVarObject_HEAD_INIT(type, size) \
-        PyObject_HEAD_INIT(type) size,
+	#define PyVarObject_HEAD_INIT(type, size) \
+		PyObject_HEAD_INIT(type) size,
 #endif
 
-/* Python 3 compatibility */
-
-
 
 static PyObject *init(PyObject *self, PyObject *args)
 {
 PyMODINIT_FUNC PyInit__inotify(void)
 {
 	PyObject *mod, *dict;
-    static struct PyModuleDef moduledef = {
-        PyModuleDef_HEAD_INIT, "_inotify", doc, -1, methods, };
+	static struct PyModuleDef moduledef = {
+		PyModuleDef_HEAD_INIT, "_inotify", doc, -1, methods, };
 
 	if (PyType_Ready(&event_type) == -1)
 		return NULL;
 
-    mod = PyModule_Create(&moduledef);
+	mod = PyModule_Create(&moduledef);
 
 	dict = PyModule_GetDict(mod);
 	
 	if (dict)
 		define_consts(dict);
 
-    return mod;
+	return mod;
 }
 
 #else
 	if (PyType_Ready(&event_type) == -1)
 		return;
 
-    mod = Py_InitModule3("_inotify", methods, doc);
+	mod = Py_InitModule3("_inotify", methods, doc);
 
 	dict = PyModule_GetDict(mod);
 	
 	if (dict)
 		define_consts(dict);
 
-    return;
+	return;
 }
 #endif
 import distutils.util
 
 try:
-   from distutils.command.build_py import build_py_2to3 \
+    from distutils.command.build_py import build_py_2to3 \
         as build_py
 except ImportError:
-   from distutils.command.build_py import build_py
+    from distutils.command.build_py import build_py
 
 
 platform = distutils.util.get_platform()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.