diff options
author | scoder <stefan_ml@behnel.de> | 2020-06-10 14:49:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 14:49:38 +0200 |
commit | 7f26ba41ced0a95e2aef6ed608302fe743d836dd (patch) | |
tree | e532aad49ba5cae08f68fa29fd092e35e982e4d2 /Cython/Compiler/Scanning.py | |
parent | 975a43a6a724cfd7591d747fd02d2c5d662e00c2 (diff) | |
download | cython-7f26ba41ced0a95e2aef6ed608302fe743d836dd.tar.gz |
Fix many indentation and whitespace issues throughout the code base (GH-3673)
… and enforce them with pycodestyle.
Diffstat (limited to 'Cython/Compiler/Scanning.py')
-rw-r--r-- | Cython/Compiler/Scanning.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 0e760881d..feb428638 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -136,7 +136,7 @@ class SourceDescriptor(object): _escaped_description = None _cmp_name = '' def __str__(self): - assert False # To catch all places where a descriptor is used directly as a filename + assert False # To catch all places where a descriptor is used directly as a filename def set_file_type_from_name(self, filename): name, ext = os.path.splitext(filename) @@ -344,7 +344,7 @@ class PyrexScanner(Scanner): def normalize_ident(self, text): try: - text.encode('ascii') # really just name.isascii but supports Python 2 and 3 + text.encode('ascii') # really just name.isascii but supports Python 2 and 3 except UnicodeEncodeError: text = normalize('NFKC', text) self.produce(IDENT, text) @@ -452,7 +452,7 @@ class PyrexScanner(Scanner): systring = self.context.intern_ustring(systring) self.sy = sy self.systring = systring - if False: # debug_scanner: + if False: # debug_scanner: _, line, col = self.position() if not self.systring or self.sy == self.systring: t = self.sy |