fix misleading style guide (#140)

* fix misleading style guide

style guide stated to use new format style on strings, but when using logging `pylint` is configured to
enforce `%s` usage for lazy log evaluation.

* Make it shorter

* Minor change
This commit is contained in:
Max Rydahl Andersen 2018-11-08 18:27:20 +01:00 committed by Fabian Affolter
parent 7ae6d9db7a
commit 3fde2e4f40

View File

@ -90,3 +90,9 @@ Prefer [new style string formatting](https://www.python.org/dev/peps/pep-3101/)
"{} {}".format('New', 'style')
"%s %s" % ('Old', 'style')
```
Except when doing logging here the format is:
```python
_LOGGER.info("Can't connect to the webservice %s at %s", string1, string2)
```