[Checkins] SVN: zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py - clean up whitespace

Fred Drake fdrake at gmail.com
Wed Dec 21 05:01:44 UTC 2011


Log message for revision 123842:
  - clean up whitespace
  - remove unused assignment
  

Changed:
  U   zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py

-=-
Modified: zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py
===================================================================
--- zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py	2011-12-20 16:12:20 UTC (rev 123841)
+++ zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py	2011-12-21 05:01:43 UTC (rev 123842)
@@ -16,11 +16,17 @@
 $Id: deployment.py 14934 2006-11-10 23:57:33Z jim $
 """
 
-import grp, logging, os, pwd, shutil
+import grp
+import logging
+import os
+import pwd
+import shutil
 import zc.buildout
 
+
 logger = logging.getLogger('zc.recipe.deployment')
 
+
 class Install:
 
     def __init__(self, buildout, name, options):
@@ -30,7 +36,6 @@
 
         name = options['name']
 
-        create = []
         options['prefix'] = options.get('prefix', '/')
         options['run-directory'] = os.path.join(
             options['prefix'], options.get('run', 'var/run'), name)
@@ -96,6 +101,7 @@
                 os.rmdir(path)
                 logger.info("Removing %r.", path)
 
+
 def make_dir(name, uid, gid, mode, created):
     uname = pwd.getpwuid(uid)[0]
     gname = grp.getgrgid(gid)[0]
@@ -111,6 +117,7 @@
 
     os.chown(name, uid, gid)
 
+
 class Configuration:
 
     def __init__(self, buildout, name, options):
@@ -162,6 +169,7 @@
 
     update = install
 
+
 class Crontab:
 
     def __init__(self, buildout, name, options):
@@ -246,4 +254,3 @@
                 new_config.append(line)
 
     open(options['location'], 'w').write(''.join(new_config))
-



More information about the checkins mailing list