From 43aa037ebd9324a628cb0e4e52e52b3fa01c7761 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 20 May 2017 04:26:57 -0400 Subject: [PATCH] Reindent --- _pytest/config.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/_pytest/config.py b/_pytest/config.py index 24b05e4ae..9fc2ed5fe 100644 --- a/_pytest/config.py +++ b/_pytest/config.py @@ -1021,15 +1021,15 @@ class Config(object): ) for entry in metadata_entries: - fn = entry.split(',')[0] - is_simple_module = os.sep not in fn and fn.endswith('.py') - is_package = fn.count(os.sep) == 1 and fn.endswith('__init__.py') - if is_simple_module: - module_name, ext = os.path.splitext(fn) - hook.mark_rewrite(module_name) - elif is_package: - package_name = os.path.dirname(fn) - hook.mark_rewrite(package_name) + fn = entry.split(',')[0] + is_simple_module = os.sep not in fn and fn.endswith('.py') + is_package = fn.count(os.sep) == 1 and fn.endswith('__init__.py') + if is_simple_module: + module_name, ext = os.path.splitext(fn) + hook.mark_rewrite(module_name) + elif is_package: + package_name = os.path.dirname(fn) + hook.mark_rewrite(package_name) def _warn_about_missing_assertion(self, mode): try: