changeset 250:ff964825a75a

Style: placement of "__all__"
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 07 Jul 2020 09:27:24 +0200
parents 1e38ccfba3de
children 2a8dcab2de8c
files configmix/compat.py configmix/config.py configmix/ini.py configmix/json.py configmix/py.py configmix/variables.py configmix/yaml.py
diffstat 7 files changed, 26 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/configmix/compat.py	Tue Jul 07 09:11:55 2020 +0200
+++ b/configmix/compat.py	Tue Jul 07 09:27:24 2020 +0200
@@ -9,6 +9,7 @@
 
 from __future__ import division, absolute_import, print_function
 
+
 __all__ = ["PY2",
            "text_to_native_os_str",
            "native_os_str_to_text",
--- a/configmix/config.py	Tue Jul 07 09:11:55 2020 +0200
+++ b/configmix/config.py	Tue Jul 07 09:27:24 2020 +0200
@@ -10,6 +10,10 @@
 
 from __future__ import division, absolute_import, print_function
 
+
+__all__ = ["Configuration"]
+
+
 import warnings
 try:
     from collections import OrderedDict as ConfigurationBase
@@ -23,9 +27,6 @@
 from .compat import u
 
 
-__all__ = ["Configuration"]
-
-
 _MARKER = object()
 
 
--- a/configmix/ini.py	Tue Jul 07 09:11:55 2020 +0200
+++ b/configmix/ini.py	Tue Jul 07 09:27:24 2020 +0200
@@ -9,6 +9,11 @@
 
 from __future__ import division, absolute_import, print_function
 
+
+__all__ = ["INIConfigParser", "NoSectionError", "NoOptionError",
+           "load"]
+
+
 import sys
 import os
 import io
@@ -35,10 +40,6 @@
 from .compat import u, u2fs
 
 
-__all__ = ["INIConfigParser", "NoSectionError", "NoOptionError",
-           "load"]
-
-
 class INIConfigParser(_ConfigParserBase):
 
     """A case sensitive config parser that returns all-unicode string
--- a/configmix/json.py	Tue Jul 07 09:11:55 2020 +0200
+++ b/configmix/json.py	Tue Jul 07 09:27:24 2020 +0200
@@ -9,6 +9,10 @@
 
 from __future__ import division, absolute_import, print_function
 
+
+__all__ = ["load"]
+
+
 import io
 import json.decoder
 try:
@@ -22,9 +26,6 @@
 from .compat import u2fs
 
 
-__all__ = ["load"]
-
-
 #
 # Determine whether the JSONDecoder has the "object_pairs_hook"
 # parameter once
--- a/configmix/py.py	Tue Jul 07 09:11:55 2020 +0200
+++ b/configmix/py.py	Tue Jul 07 09:27:24 2020 +0200
@@ -9,6 +9,10 @@
 
 from __future__ import division, absolute_import, print_function
 
+
+__all__ = ["load"]
+
+
 try:
     from collections import OrderedDict as DictImpl
 except ImportError:
@@ -20,9 +24,6 @@
 from .compat import PY2, u2fs
 
 
-__all__ = ["load"]
-
-
 def load(filename, extract=None):
     """Load Python-style configuration files.
 
--- a/configmix/variables.py	Tue Jul 07 09:11:55 2020 +0200
+++ b/configmix/variables.py	Tue Jul 07 09:27:24 2020 +0200
@@ -9,6 +9,10 @@
 
 from __future__ import division, absolute_import, print_function
 
+
+__all__ = []
+
+
 import os
 import platform
 from functools import wraps
@@ -16,9 +20,6 @@
 from .compat import PY2, native_os_str_to_text, u
 
 
-__all__ = []
-
-
 _MARKER = object()
 
 
--- a/configmix/yaml.py	Tue Jul 07 09:11:55 2020 +0200
+++ b/configmix/yaml.py	Tue Jul 07 09:27:24 2020 +0200
@@ -10,6 +10,10 @@
 
 from __future__ import division, print_function, absolute_import
 
+
+__all__ = ["safe_load", "safe_load_all", "load", "load_all"]
+
+
 try:
     from collections import OrderedDict
 except ImportError:
@@ -23,9 +27,6 @@
 from .compat import u
 
 
-__all__ = ["safe_load", "safe_load_all", "load", "load_all"]
-
-
 DictImpl = OrderedDict or dict