Commits

JanKanis  committed 31743f5

fix leftover cruft and whitespace

  • Participants
  • Parent commits d6682a9

Comments (0)

Files changed (2)

File 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()