Skip to content
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

Fix #1051 #1087

Merged
merged 2 commits into from
Dec 30, 2019
Merged

Fix #1051 #1087

merged 2 commits into from
Dec 30, 2019

Conversation

Jengah
Copy link
Contributor

@Jengah Jengah commented Dec 29, 2019

What does this changes

Fixes #1051

This also adds an entry to .gitignore for pyenv users who take advantage of pyenv-virtualenv

What was wrong

The use of method name country_code in faker/providers/phone_number/ar_PS/__init__.py was overriding the functionality of address.country_code when locale ar_PS is specified.

How this fixes it

Renaming to area_code removes the conflict, causing the error seen in #1051, while ensuring that all phone_number localization for ar_PS continues to work.

Fixes #1051

@fcurella
Copy link
Collaborator

Thank you! ✨

@fcurella fcurella merged commit 9c13a54 into joke2k:master Dec 30, 2019
IlfirinPL pushed a commit to IlfirinPL/faker that referenced this pull request Apr 9, 2021
* add .python-version to .gitignore (pyenv virtualenv file)

* rename country_code to area_code as it conflicts with address provider
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.

locale 'ar_Ps' provides wrong country code
2 participants