Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-15 18:43:36 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-11-23 16:14:34 (GMT)
commit5f13fcfc847ecff18b9558de8ce29da884a06d7a (patch)
treef11e99ad0835c1fccbe3539212b516efeffda8d8
parent5f8ec81023f7acefcab1597a60cd0094d85ee3f1 (diff)
style cleanup: use """ everywhere
Most of the code uses """, so adjust the few deviations. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
-rw-r--r--src/sugar/activity/bundlebuilder.py14
-rw-r--r--src/sugar/bundle/activitybundle.py4
2 files changed, 9 insertions, 9 deletions
diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py
index d67077f..b4ffff9 100644
--- a/src/sugar/activity/bundlebuilder.py
+++ b/src/sugar/activity/bundlebuilder.py
@@ -277,7 +277,7 @@ class Installer(object):
def cmd_dev(config, args):
- '''Setup for development'''
+ """Setup for development"""
if args:
print 'Usage: %prog dev'
@@ -297,7 +297,7 @@ def cmd_dev(config, args):
def cmd_dist_xo(config, args):
- '''Create a xo bundle package'''
+ """Create a xo bundle package"""
if args:
print 'Usage: %prog dist_xo'
@@ -308,7 +308,7 @@ def cmd_dist_xo(config, args):
def cmd_fix_manifest(config, args):
- '''Add missing files to the manifest'''
+ """Add missing files to the manifest"""
if args:
print 'Usage: %prog fix_manifest'
@@ -319,7 +319,7 @@ def cmd_fix_manifest(config, args):
def cmd_dist_source(config, args):
- '''Create a tar source package'''
+ """Create a tar source package"""
if args:
print 'Usage: %prog dist_source'
@@ -330,7 +330,7 @@ def cmd_dist_source(config, args):
def cmd_install(config, args):
- '''Install the activity in the system'''
+ """Install the activity in the system"""
parser = OptionParser(usage='usage: %prog install [options]')
parser.add_option('--prefix', dest='prefix', default=sys.prefix,
@@ -345,7 +345,7 @@ def cmd_install(config, args):
def cmd_genpot(config, args):
- '''Generate the gettext pot file'''
+ """Generate the gettext pot file"""
if args:
print 'Usage: %prog genpot'
@@ -384,7 +384,7 @@ def cmd_genpot(config, args):
def cmd_build(config, args):
- '''Build generated files'''
+ """Build generated files"""
if args:
print 'Usage: %prog build'
diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py
index ff29f05..b21f25d 100644
--- a/src/sugar/bundle/activitybundle.py
+++ b/src/sugar/bundle/activitybundle.py
@@ -348,8 +348,8 @@ class ActivityBundle(Bundle):
return install_path
def install_mime_type(self, install_path):
- ''' Update the mime type database and install the mime type icon
- '''
+ """ Update the mime type database and install the mime type icon
+ """
xdg_data_home = os.getenv('XDG_DATA_HOME',
os.path.expanduser('~/.local/share'))