[Github-comments] [geany/geany-plugins] Sync with latest upstream (#527)

Matthew Brush notifications at xxxxx
Fri Feb 17 15:39:35 UTC 2017


codebrainz commented on this pull request.



> @@ -62,7 +62,7 @@ Editor_get_property(Editor *self, const gchar *prop_name)
 		PyObject *py_doc;
 		py_doc = (PyObject *) Document_create_new_from_geany_document(
 									self->editor->document);
-		if (py_doc && py_doc != Py_None)
+		if (!py_doc || py_doc == Py_None)

I think it's effectively like 

```c
#define Py_RETURN_NONE do { Py_INCREF(Py_None); return Py_None; } while (0)
``` 

or something similar.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/527#discussion_r101781975
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170217/464e4190/attachment.html>


More information about the Github-comments mailing list