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

os.environ is not a dict: has no "has_key()" method #31

Merged
merged 1 commit into from
Dec 18, 2015
Merged

os.environ is not a dict: has no "has_key()" method #31

merged 1 commit into from
Dec 18, 2015

Conversation

brentjens
Copy link

It is a mappable that implements the contains method. It does not
have a has_key() method. I therefore replaced all instances of os.environ.has_key(...)
with 'keyname' in os.environ.keys().

It is a "mappable" that implements the __contains__ method. It does not
have a has_key() method. I therefore replaced all instances of os.environ.has_key(...)
with keyname in os.environ.keys().
@brentjens
Copy link
Author

One other remark: maybe it's time to add a python 3(.5?) build to Travis?

@tammojan tammojan mentioned this pull request Dec 18, 2015
@tammojan
Copy link
Contributor

< One other remark: maybe it's time to add a python 3(.5?) build to Travis?

See #32

tammojan added a commit that referenced this pull request Dec 18, 2015
os.environ is not a dict: has no "has_key()" method
@tammojan tammojan merged commit 2343069 into casacore:master Dec 18, 2015
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