[geany/geany] 4f3e32: Rename global "constant" to follow PEP-8 naming

Matthew Brush git-noreply at xxxxx
Tue Feb 16 05:52:08 UTC 2016


Branch:      refs/heads/master
Author:      Matthew Brush <mbrush at codebrainz.ca>
Committer:   Thomas Martitz <kugel at rockbox.org>
Date:        Tue, 16 Feb 2016 05:52:08 UTC
Commit:      4f3e32e95f907b03aef4c8cffdbeee291520044c
             https://github.com/geany/geany/commit/4f3e32e95f907b03aef4c8cffdbeee291520044c

Log Message:
-----------
Rename global "constant" to follow PEP-8 naming


Modified Paths:
--------------
    scripts/gen-api-gtkdoc.py

Modified: scripts/gen-api-gtkdoc.py
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -16,9 +16,9 @@ def normalize_text(s):
 # doxygen records some definitions in C++ style, fix those
 # "bool FooBar::flag" => "bool flag"
 # void(* _GeanyObjectClass::project_open) (GKeyFile *keyfile) => void(* project_open) (GKeyFile *keyfile)
-prog = re.compile(r'[_a-zA-Z][_0-9a-zA-Z]*::')
+CXX_NAMESPACE_RE = re.compile(r'[_a-zA-Z][_0-9a-zA-Z]*::')
 def fix_definition(s):
-    return prog.sub(r"", s);
+    return CXX_NAMESPACE_RE.sub(r"", s);
 
 assert(fix_definition("bool flag") == "bool flag")
 assert(fix_definition("bool FooBar::flag") == "bool flag")



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list