Code cleanup: style/warnings

This commit is contained in:
Campbell Barton 2014-02-28 11:04:15 +11:00
parent 11f3fc0efd
commit d3b9457991
4 changed files with 9 additions and 5 deletions

View File

@ -42,8 +42,9 @@ def open_wrapper_get():
class GFileWrapper:
__slots__ = ("mode", "g_file")
def __init__(self, url, mode='r'):
self.mode = mode # used in gzip module
self.mode = mode # used in gzip module
self.g_file = Gio.File.parse_name(url).read(None)
def read(self, size):

View File

@ -1164,7 +1164,7 @@ static void get_profile_point(BevelParams *bp, const Profile *pro, int i, int n,
}
}
/* Calculcate the actual coordinate values for bndv's profile.
/* Calculate the actual coordinate values for bndv's profile.
* This is only needed if bp->seg > 1.
* Allocate the space for them if that hasn't been done already.
* If bp->seg is not a power of 2, also need to calculate

View File

@ -230,8 +230,9 @@ static int unset_property_button_exec(bContext *C, wmOperator *UNUSED(op))
uiContextActiveProperty(C, &ptr, &prop, &index);
/* if there is a valid property that is editable... */
if (ptr.data && prop && RNA_property_editable(&ptr, prop)
/*&& RNA_property_is_idprop(prop)*/ && RNA_property_is_set(&ptr, prop))
if (ptr.data && prop && RNA_property_editable(&ptr, prop) &&
/* RNA_property_is_idprop(prop) && */
RNA_property_is_set(&ptr, prop))
{
RNA_property_unset(&ptr, prop);
return operator_button_property_finish(C, &ptr, prop);

View File

@ -572,7 +572,9 @@ static void area_azone_initialize(wmWindow *win, bScreen *screen, ScrArea *sa)
/* can't click on bottom corners on OS X, already used for resizing */
#ifdef __APPLE__
if(!(sa->totrct.xmin == 0 && sa->totrct.ymin == 0) || WM_window_is_fullscreen(win))
if (!(sa->totrct.xmin == 0 && sa->totrct.ymin == 0) || WM_window_is_fullscreen(win))
#else
(void)win;
#endif
{
/* set area action zones */