pep8 edits

This commit is contained in:
Campbell Barton 2012-01-01 08:52:54 +00:00
parent 418d66242f
commit c99975e24f
7 changed files with 19 additions and 12 deletions

@ -38,6 +38,7 @@ class DataPathBuilder(object):
""" Dummy class used to parse fcurve and driver data paths. """ Dummy class used to parse fcurve and driver data paths.
""" """
__slots__ = ("data_path", ) __slots__ = ("data_path", )
def __init__(self, attrs): def __init__(self, attrs):
self.data_path = attrs self.data_path = attrs

@ -99,7 +99,7 @@ def write_sysinfo(op):
ffmpeg = bpy.app.ffmpeg ffmpeg = bpy.app.ffmpeg
if ffmpeg.supported: if ffmpeg.supported:
for lib in ['avcodec', 'avdevice', 'avformat', 'avutil', 'swscale']: for lib in ['avcodec', 'avdevice', 'avformat', 'avutil', 'swscale']:
output.write('{}:{}{}\n'.format(lib, " "*(10-len(lib)), output.write('{}:{}{}\n'.format(lib, " " * (10 - len(lib)),
getattr(ffmpeg, lib + '_version_string'))) getattr(ffmpeg, lib + '_version_string')))
else: else:
output.write('Blender was built without FFmpeg support\n') output.write('Blender was built without FFmpeg support\n')

@ -32,6 +32,7 @@ from rna_prop_ui import rna_idprop_ui_prop_get, rna_idprop_ui_prop_clear
import subprocess import subprocess
import os import os
class MESH_OT_delete_edgeloop(Operator): class MESH_OT_delete_edgeloop(Operator):
'''Delete an edge loop by merging the faces on each side to a single face loop''' '''Delete an edge loop by merging the faces on each side to a single face loop'''
bl_idname = "mesh.delete_edgeloop" bl_idname = "mesh.delete_edgeloop"
@ -1176,6 +1177,7 @@ class WM_OT_copy_prev_settings(Operator):
return {'CANCELLED'} return {'CANCELLED'}
class WM_OT_blenderplayer_start(bpy.types.Operator): class WM_OT_blenderplayer_start(bpy.types.Operator):
'''Launch the Blenderplayer with the current blendfile''' '''Launch the Blenderplayer with the current blendfile'''
bl_idname = "wm.blenderplayer_start" bl_idname = "wm.blenderplayer_start"
@ -1197,6 +1199,7 @@ class WM_OT_blenderplayer_start(bpy.types.Operator):
subprocess.call([self.player_path, filepath]) subprocess.call([self.player_path, filepath])
return {'FINISHED'} return {'FINISHED'}
class WM_OT_keyconfig_test(Operator): class WM_OT_keyconfig_test(Operator):
"Test keyconfig for conflicts" "Test keyconfig for conflicts"
bl_idname = "wm.keyconfig_test" bl_idname = "wm.keyconfig_test"
@ -1462,6 +1465,7 @@ class WM_OT_operator_cheat_sheet(Operator):
self.report({'INFO'}, "See OperatorList.txt textblock") self.report({'INFO'}, "See OperatorList.txt textblock")
return {'FINISHED'} return {'FINISHED'}
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Addon Operators # Addon Operators

@ -247,6 +247,7 @@ class RenderButtonsPanel():
class RENDER_PT_embedded(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_embedded(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Embedded Player" bl_label = "Embedded Player"
COMPAT_ENGINES = {'BLENDER_GAME'} COMPAT_ENGINES = {'BLENDER_GAME'}
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
@ -288,7 +289,6 @@ class RENDER_PT_game_player(RenderButtonsPanel, Panel):
col.prop(gs, "frequency", text="Refresh Rate", slider=False) col.prop(gs, "frequency", text="Refresh Rate", slider=False)
class RENDER_PT_game_stereo(RenderButtonsPanel, Panel): class RENDER_PT_game_stereo(RenderButtonsPanel, Panel):
bl_label = "Stereo" bl_label = "Stereo"
COMPAT_ENGINES = {'BLENDER_GAME'} COMPAT_ENGINES = {'BLENDER_GAME'}
@ -476,6 +476,7 @@ class SCENE_PT_game_navmesh(SceneButtonsPanel, Panel):
row.prop(rd, "sample_dist") row.prop(rd, "sample_dist")
row.prop(rd, "sample_max_error") row.prop(rd, "sample_max_error")
class RENDER_PT_game_sound(RenderButtonsPanel, Panel): class RENDER_PT_game_sound(RenderButtonsPanel, Panel):
bl_label = "Sound" bl_label = "Sound"
COMPAT_ENGINES = {'BLENDER_GAME'} COMPAT_ENGINES = {'BLENDER_GAME'}
@ -491,6 +492,7 @@ class RENDER_PT_game_sound(RenderButtonsPanel, Panel):
col.prop(scene, "audio_doppler_speed", text="Speed") col.prop(scene, "audio_doppler_speed", text="Speed")
col.prop(scene, "audio_doppler_factor") col.prop(scene, "audio_doppler_factor")
class WorldButtonsPanel(): class WorldButtonsPanel():
bl_space_type = 'PROPERTIES' bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW' bl_region_type = 'WINDOW'