diff piecrust/admin/configuration.py @ 812:82509bce94ca

internal: PEP8 fixup for admin panel code.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 20 Dec 2016 22:20:18 -0800
parents 5e91bc0e3b4d
children
line wrap: on
line diff
--- a/piecrust/admin/configuration.py	Mon Dec 19 22:31:30 2016 -0800
+++ b/piecrust/admin/configuration.py	Tue Dec 20 22:20:18 2016 -0800
@@ -3,8 +3,8 @@
 import logging
 import yaml
 from piecrust.configuration import (
-        Configuration, ConfigurationError, ConfigurationLoader,
-        merge_dicts)
+    Configuration, ConfigurationError, ConfigurationLoader,
+    merge_dicts)
 
 
 logger = logging.getLogger(__name__)
@@ -30,8 +30,8 @@
         try:
             with open(self.cfg_path, 'r', encoding='utf-8') as fp:
                 values = yaml.load(
-                        fp.read(),
-                        Loader=ConfigurationLoader)
+                    fp.read(),
+                    Loader=ConfigurationLoader)
 
             self._values = self._validateAll(values)
         except OSError:
@@ -43,8 +43,8 @@
             self._values = copy.deepcopy(self.fallback_config)
         except Exception as ex:
             raise ConfigurationError(
-                    "Error loading configuration from: %s" %
-                    self.cfg_path) from ex
+                "Error loading configuration from: %s" %
+                self.cfg_path) from ex
 
     def _validateAll(self, values):
         if values is None:
@@ -60,15 +60,15 @@
 
 
 default_configuration = {
-        'triggers': {
-            'bake': 'chef bake'
-            },
-        'scm': {
-            'type': 'hg'
-            },
-        'security': {
-            'username': '',
-            'password': ''
-            }
-        }
+    'triggers': {
+        'bake': 'chef bake'
+    },
+    'scm': {
+        'type': 'hg'
+    },
+    'security': {
+        'username': '',
+        'password': ''
+    }
+}