From 0eba58d4267134e7f36665cb6bc481834abb7f9c Mon Sep 17 00:00:00 2001 From: Cory Johns Date: Tue, 29 Nov 2016 18:44:34 -0500 Subject: [PATCH] NoneType and style fixes for placement parsing lib --- juju/placement.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/juju/placement.py b/juju/placement.py index 62cd570..6f91aed 100644 --- a/juju/placement.py +++ b/juju/placement.py @@ -6,9 +6,10 @@ # module should be deprecated. # +from .client import client + MACHINE_SCOPE = "#" -from .client import client def parse(directive): """ @@ -17,7 +18,7 @@ def parse(directive): back over the websocket API. """ - if directive == "": + if not directive: # Handle null case return None -- 2.25.1