Fixes minor PEP8 errors

This commit is contained in:
Alessandro Pilotti
2014-09-07 23:33:32 +03:00
parent 324aadd4bf
commit 955f3c1eed
3 changed files with 2 additions and 7 deletions

View File

@@ -17,7 +17,6 @@
import ctypes
import os
import shutil
import sys
import tempfile
import uuid

View File

@@ -503,7 +503,8 @@ def _setup_logging_from_conf(project, version):
if CONF.publish_errors:
try:
handler = importutils.import_object(
"cloudbaseinit.openstack.common.log_handler.PublishErrorsHandler",
"cloudbaseinit.openstack.common.log_handler."
"PublishErrorsHandler",
logging.ERROR)
except ImportError:
handler = importutils.import_object(

View File

@@ -50,8 +50,6 @@ class WinRMConfig(object):
listening_on = []
data = {"ListeningOn": listening_on}
ns = {'cfg':
'http://schemas.microsoft.com/wbem/wsman/1/config/listener'}
tree = ElementTree.fromstring(data_xml)
for node in tree:
tag = self._get_node_tag(node.tag)
@@ -76,9 +74,6 @@ class WinRMConfig(object):
data = {}
ns = {'cfg':
'http://schemas.microsoft.com/wbem/wsman/1/config/service/'
'certmapping.xsd'}
tree = ElementTree.fromstring(data_xml)
for node in tree:
tag = self._get_node_tag(node.tag)