From 8c378c52c83757b9e78d5a98581bf240ed31a1ec Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Mar 2017 12:47:06 +1100 Subject: Cleanup: identity for None comparison --- io_mesh_ply/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_mesh_ply') diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py index 7e2a7037..3e84a4fd 100644 --- a/io_mesh_ply/__init__.py +++ b/io_mesh_ply/__init__.py @@ -134,7 +134,7 @@ class ExportPLY(bpy.types.Operator, ExportHelper, IOPLYOrientationHelper): @classmethod def poll(cls, context): - return context.active_object != None + return context.active_object is not None def execute(self, context): from . import export_ply -- cgit v1.2.3