diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 07:47:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 07:55:02 +0300 |
commit | 8c15d612a5cdfe39233c7f2b7556742091c82558 (patch) | |
tree | 248e7611f9245c1796515baef2ace410bf896c9d /tests/python/bl_pyapi_idprop_datablock.py | |
parent | b66aa0b0a6b123e833d4038a77a5d3f04c37a9a0 (diff) |
Cleanup: pep8
Diffstat (limited to 'tests/python/bl_pyapi_idprop_datablock.py')
-rw-r--r-- | tests/python/bl_pyapi_idprop_datablock.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/python/bl_pyapi_idprop_datablock.py b/tests/python/bl_pyapi_idprop_datablock.py index 4acfb83bd95..4b46bea7c00 100644 --- a/tests/python/bl_pyapi_idprop_datablock.py +++ b/tests/python/bl_pyapi_idprop_datablock.py @@ -61,8 +61,10 @@ class TestClass(bpy.types.PropertyGroup): def get_scene(lib_name, sce_name): for s in bpy.data.scenes: if s.name == sce_name: - if (s.library and s.library.name == lib_name) or \ - (lib_name == None and s.library == None): + if ( + (s.library and s.library.name == lib_name) or + (lib_name is None and s.library is None) + ): return s @@ -309,6 +311,7 @@ def test_restrictions2(): class TestUIList(UIList): test = bpy.props.PointerProperty(type=bpy.types.Object) + def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): layout.prop(item, "name", text="", emboss=False, icon_value=icon) |