From 76b7cbd1a6b5b027f60cd128167c8b028a75bef2 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 22 Jul 2021 16:18:38 +0200 Subject: [PATCH] PEP 8: Fix indentation of two paragraphs in list (#2041) --- pep-0008.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pep-0008.txt b/pep-0008.txt index 8bf669b9f..8b31cd067 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -1357,15 +1357,15 @@ Programming Recommendations # Wrong: if type(obj) is type(1): -When checking if an object is a string, keep in mind that it might -be a unicode string too! In Python 2, str and unicode have a -common base class, basestring, so you can do:: + When checking if an object is a string, keep in mind that it might + be a unicode string too! In Python 2, str and unicode have a + common base class, basestring, so you can do:: if isinstance(obj, basestring): -Note that in Python 3, ``unicode`` and ``basestring`` no longer exist -(there is only ``str``) and a bytes object is no longer a kind of -string (it is a sequence of integers instead). + Note that in Python 3, ``unicode`` and ``basestring`` no longer exist + (there is only ``str``) and a bytes object is no longer a kind of + string (it is a sequence of integers instead). - For sequences, (strings, lists, tuples), use the fact that empty sequences are false::