code cleanup: python - pass multiple args to string startswith() / endswith() functio...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 4 Sep 2012 20:32:09 +0000 (20:32 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 4 Sep 2012 20:32:09 +0000 (20:32 +0000)
io_import_LRO_Lola_MGS_Mola_img.py

index 6098820aeda34b1a5886e9c16eddd80d94d17333..ec3c379d42e15f33383b47e03888286d0f7843f0 100644 (file)
@@ -537,7 +537,7 @@ class Img_Importer(bpy.types.Panel):
                 split = col.split(align=True)
                 split.label("Message: " + Message)
 
-            if bpy.context.scene.fpath.upper().endswith("IMG") or bpy.context.scene.fpath.upper().endswith("LBL"):  # Check if is selected the correct file
+            if bpy.context.scene.fpath.upper().endswith(("IMG", "LBL")):  # Check if is selected the correct file
                 VertNumbers = (((RealLat(bpy.context.scene.FromLat) - RealLat(bpy.context.scene.ToLat)) * MAP_RESOLUTION) + 1) * ((RealLong(bpy.context.scene.ToLong) - RealLong(bpy.context.scene.FromLong)) * MAP_RESOLUTION + 1)
             else:
                 VertNumbers = 0