Skip to content

Update PostgreSQL builtins #1513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 22, 2020
Merged

Conversation

kurtmckee
Copy link
Contributor

The existing auto-update code no longer worked with current Postgres source code (or with Python 3.8), so I've updated that. I also encountered newline problems when running this on Windows and adjusted to fix that.

Note that the email lexer's filename prevents urllib from importing, so I had to rename email.py to get the code running. It may be worthwhile to rename the email lexer in the future.

Please let me know if there's anything I'm missing with this. I read the contributing docs but didn't see anything about multiple commits so I tried to keep the history clean. I also ran the branch through tox but only on Python 3.8.

Thanks for any feedback you have!

Postgres source code locations and structure have changed a little.
Also, now it works on Windows and sorts all keywords.
Note that LC_COLLATE and LCCTYPE are removed from the keywords list.
@Anteru
Copy link
Collaborator

Anteru commented Aug 20, 2020

Thanks for the contribution. I may be blind, but where was the email.py file renamed? Or was this a one-time thing to get the script to run?

@Anteru Anteru self-assigned this Aug 20, 2020
@Anteru Anteru added this to the 2.7 milestone Aug 20, 2020
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Aug 20, 2020
@kurtmckee
Copy link
Contributor Author

kurtmckee commented Aug 20, 2020 via email

@Anteru Anteru merged commit f596214 into pygments:master Aug 22, 2020
@Anteru
Copy link
Collaborator

Anteru commented Aug 22, 2020

Makes sense, thanks!

@kurtmckee kurtmckee deleted the update-postgres branch September 4, 2020 20:50
@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Sep 8, 2020
Kenny2github pushed a commit to Kenny2github/pygments that referenced this pull request Sep 22, 2020
* Update the Postgres auto-update code

Postgres source code locations and structure have changed a little.
Also, now it works on Windows and sorts all keywords.

* Update the PostgreSQL builtins

Note that LC_COLLATE and LCCTYPE are removed from the keywords list.

* Update AUTHORS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants