From d1b32ad7890b5f32aba4db5ef798877fd333d573 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 29 Sep 2017 22:26:02 +0200 Subject: Move _is_header_line to a better spot There's already a "misc." section. Also fix typo in docstring. --- kconfiglib.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index e1f9d29..283da60 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1908,17 +1908,17 @@ class Config(object): additional_deps_str, "Locations: " + locations_str) - # - # Warnings and misc. - # - def _is_header_line(self, line): """Returns True is the line could be part of the initial header in a .config file (which is really just another comment, but can be handy - for storing metadata.""" + for storing metadata).""" return line is not None and line.startswith("#") and \ not self._unset_re.match(line) + # + # Warnings + # + def _warn(self, msg, filename=None, linenr=None): """For printing general warnings.""" if self._print_warnings: -- cgit v1.2.3