Coding guidelines were not PEP8 compliant :-) (#25589)

pull/25382/head
Dag Wieers 8 years ago committed by John R Barker
parent e017bf964e
commit f380fd84c5

@ -101,21 +101,21 @@ Use the dict constructor where possible when allocating dictionaries:
# this: # this:
foo = dict( foo = dict(
a = 12, a=12,
b = 34 b=34,
) )
Line up variables Do not line up variables
# not this # not this
a = 12 a = 12
foosball = 34 foosball = 34
xyz = 'dog' xyz = 'dog'
# this # this
a = 12 a = 12
foosball = 34 foosball = 34
xyz = 'dog' xyz = 'dog'
Don't use line continuations: Don't use line continuations:
@ -131,13 +131,13 @@ Don't use line continuations:
Spacing: Spacing:
# no # no
x=[1,2,3] x = [1,2,3]
# no # no
x = [1,2,3] x = [ 1, 2, 3 ]
# yes # yes
x = [ 1, 2, 3 ] x = [1, 2, 3]
Spacing continued: Spacing continued:
@ -314,7 +314,3 @@ This was not meant to be a scary document, so we hope it wasn't, but we also hop
If you have questions about this document, please ask on the ansible-devel mailing list. If you have questions about this document, please ask on the ansible-devel mailing list.
Thank you! Thank you!

Loading…
Cancel
Save