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

Migrate settings to new module #35

Merged
merged 3 commits into from
May 21, 2011
Merged

Migrate settings to new module #35

merged 3 commits into from
May 21, 2011

Conversation

jgorset
Copy link
Contributor

@jgorset jgorset commented May 20, 2011

I've completed the migration of the requests settings to the new settings module, but my attempt to facilitate for manipulating settings outside of the context manager (eg. requests.settings.timeout = 5) has been thwarted by the namespace collision of the context manager and the module.

I'm probably just being stupid. You'll figure it out.

@kennethreitz
Copy link
Contributor

I'll try to take a look at this tonight.

kennethreitz pushed a commit that referenced this pull request May 21, 2011
---

Ive completed the migration of the requests settings to the new `settings` module, but my attempt to facilitate for manipulating settings outside of the context manager (eg. `requests.settings.timeout = 5`) has been thwarted by the namespace collision of the context manager and the module.

Im probably just being stupid. Youll figure it out.

Conflicts:
	requests/api.py
@kennethreitz kennethreitz merged commit 7d0374d into psf:develop May 21, 2011
@kennethreitz
Copy link
Contributor

I moved settings.py to config.py and reimplemented the Settings() object as a singleton+context-manager+struct

@jgorset
Copy link
Contributor Author

jgorset commented May 22, 2011

Very good. I'm glad I wasn't just being stupid.

@zhangyuchun zhangyuchun mentioned this pull request May 3, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants