Permalink
Browse files

Fix bug introduced when tidying for pep8

  • Loading branch information...
1 parent 6a119d0 commit 92793c5e2478aba8971cd29061777d5f787d2630 @oldpatricka oldpatricka committed Apr 1, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 ceiclient/commands.py
View
@@ -435,7 +435,7 @@ def format_reconfigure(bool_reconfs=[], int_reconfs=[], string_reconfs=[]):
for reconf in bool_reconfs or []:
m = re.match(r, reconf)
if m:
- if h in m.group(1):
+ if m.group(1) in h:
section = h[m.group(1)]
else:
section = {}
@@ -452,7 +452,7 @@ def format_reconfigure(bool_reconfs=[], int_reconfs=[], string_reconfs=[]):
for reconf in int_reconfs or []:
m = re.match(r, reconf)
if m:
- if h in m.group(1):
+ if m.group(1) in h:
section = h[m.group(1)]
else:
section = {}
@@ -463,7 +463,7 @@ def format_reconfigure(bool_reconfs=[], int_reconfs=[], string_reconfs=[]):
for reconf in string_reconfs or []:
m = re.match(r, reconf)
if m:
- if h in m.group(1):
+ if m.group(1) in h:
section = h[m.group(1)]
else:
section = {}

0 comments on commit 92793c5

Please sign in to comment.