Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 14 Nov 2015 22:58:37 UTC Commit: f12edc0299c8140cfda0cb2787464e20abd73ae9 https://github.com/geany/geany/commit/f12edc0299c8140cfda0cb2787464e20abd73a...
Log Message: ----------- Update keywords too from the Python identifiers update script
Modified Paths: -------------- scripts/update-python-identifiers.sh
Modified: scripts/update-python-identifiers.sh 8 lines changed, 6 insertions(+), 2 deletions(-) =================================================================== @@ -26,9 +26,13 @@ print(" ".join(sorted([i for i in items if i not in exclude]))) ' }
+keywords=$(py_2_and_3 -c 'from keyword import kwlist; print("\n".join(kwlist))') builtins=$(py_2_and_3 -c 'print("\n".join(dir(__builtins__)))')
+primary=$(echo "$keywords" | sort_filter) # builtins, but excluding keywords that are already listed in primary= -identifiers=$(echo "$builtins" | sort_filter False None True exec) +identifiers=$(echo "$builtins" | sort_filter $primary)
-sed -e "s/^identifiers=.*$/identifiers=$identifiers/" -i "$file" +sed -e "s/^primary=.*$/primary=$primary/" \ + -e "s/^identifiers=.*$/identifiers=$identifiers/" \ + -i "$file"
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).