I have a function call in python 2.7:
execute_cmd('/sbin/ip addr flush dev '
+ args.interface
+ ' && '
+ '/sbin/ifdown '
+ args.interface
+ ' ; '
+ '/sbin/ifup '
+ args.interface
+ ' && '
+ '/sbin/ifconfig | grep '
+ args.interface)
This is running fine, but pylint
is complaining with the following warning messages:
C:220, 0: Wrong continued indentation (remove 1 space).
+ args.interface
|^ (bad-continuation)
C:221, 0: Wrong continued indentation (remove 1 space).
+ ' && '
|^ (bad-continuation)
C:222, 0: Wrong continued indentation (remove 1 space).
+ '/sbin/ifconfig | grep '
|^ (bad-continuation)
.
.
.
What is the correct way to call a function in python with string argument(s) which spans across multiple lines?.