A few small cleanups.
Simplify initZopeSplitter() and remove unnecessary PyErr_Occurred(). Use string macros for objects that are guaranteed to be strings. Remove unnecessary \ at end of line. In innermost loop of splitter function, replace ASSIGN() macro with Py_DECREF() and simple assignment. The macro was doing more work than necessary because it called XDECREF on an object that was guaranteed not to be NULL. Use less horizontal whitespace in next_word().
Showing
Please register or sign in to comment