Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean hanging code #5232

Merged
merged 2 commits into from
Jun 29, 2017
Merged

Clean hanging code #5232

merged 2 commits into from
Jun 29, 2017

Conversation

KeyWeeUsr
Copy link
Contributor

Basically the default behavior for a Python function is returning a None if not told otherwise, so there's no need for the hanging None, nor for hanging return at the end of some functions it doesn't match the rest of the codebase (either return or return <value> or nothing).

The Python.h extern is from older @matham's code that apparently isn't around (or at least the imported stuff isn't used), ref #2566

I'm not sure about the X11 Cython code, because it doesn't import anything from the C code apparently, only makes it required at the compile time I guess? But then the window_x11_keytab.c isn't required this way, so... That's @tito's code, so I'm not sure about it. ref adb5a85

Also, in py2 print() prints a tuple (()), which will break the output (the GLES file) and I've seen it even in the report.py.

@@ -13,17 13,6 @@ handlers.

__all__ = ('EventDispatcher', 'ObjectWithUid', 'Observable')


cdef extern from "Python.h":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matham, Can this go?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.

@dessant dessant merged commit f5161a2 into master Jun 29, 2017
@dessant dessant deleted the cleanold branch June 29, 2017 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants