From 2dc06f6d50d14a97ff0c37f88b6979d18a0fd279 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 3 Jul 2012 09:01:43 +0000 Subject: Style edit (mostly), use """ for docstrings (not '''). --- add_curve_sapling/__init__.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'add_curve_sapling') diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py index 81d7aea9..12d3c9c1 100644 --- a/add_curve_sapling/__init__.py +++ b/add_curve_sapling/__init__.py @@ -74,9 +74,9 @@ settings = [('0', 'Geometry', 'Geometry'), def getPresetpath(): - '''Support user defined scripts directory + """Support user defined scripts directory Find the first ocurrence of add_curve_sapling/presets in possible script paths - and return it as preset path''' + and return it as preset path""" presetpath = "" for p in bpy.utils.script_paths(): presetpath = os.path.join(p, 'addons', 'add_curve_sapling', 'presets') @@ -86,7 +86,7 @@ def getPresetpath(): class ExportData(bpy.types.Operator): - '''This operator handles writing presets to file''' + """This operator handles writing presets to file""" bl_idname = 'sapling.exportdata' bl_label = 'Export Preset' @@ -114,7 +114,7 @@ class ExportData(bpy.types.Operator): class ImportData(bpy.types.Operator): - '''This operator handles importing existing presets''' + """This operator handles importing existing presets""" bl_idname = 'sapling.importdata' bl_label = 'Import Preset' @@ -135,9 +135,8 @@ class ImportData(bpy.types.Operator): class PresetMenu(bpy.types.Menu): - '''Create the preset menu by finding all preset files - in the preset directory - ''' + """Create the preset menu by finding all preset files """ \ + """in the preset directory""" bl_idname = "sapling.presetmenu" bl_label = "Presets" -- cgit v1.2.3