Commit c74ba60f authored by Jerome Kieffer's avatar Jerome Kieffer

PEP8: correct indentation

parent d4a30775
......@@ -4,6 +4,7 @@
from __future__ import absolute_import
class ShouldBeFromDirective(object):
known_directives = []
......@@ -486,16 +487,16 @@ def parse_compile_time_env(s, current_settings=None):
>>> parse_compile_time_env(' ')
{}
>>> (parse_compile_time_env('boundscheck=True') ==
... {'boundscheck': True})
>>> (parse_compile_time_env('HAVE_OPENMP=True') ==
... {'HAVE_OPENMP': True})
True
>>> parse_compile_time_env(' asdf')
Traceback (most recent call last):
...
ValueError: Expected "=" in option "asdf"
>>> parse_compile_time_env('boundscheck=hey') == {'boundscheck': 'hey'}
>>> parse_compile_time_env('NUM_THREADS=4') == {'NUM_THREADS': 4}
True
>>> parse_compile_time_env('unknown=True') == {'unknown': True}
>>> parse_compile_time_env('unknown=anything') == {'unknown': 'anything'}
True
"""
if current_settings is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment