Skip to content

Conversation

@djw8605
Copy link
Member

@djw8605 djw8605 commented Dec 7, 2016

Eliminate all of the errors and warnings in the pylint. But there are a ton of convention warnings and refactor warnings.

@djw8605 djw8605 mentioned this pull request Dec 7, 2016
bin/stashcp Outdated
if 'OSG_SITE_NAME' in os.environ:
sitename = os.environ['OSG_SITE_NAME']
else:
sitename = "siteNotFound"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace with:

sitename = os.environ.setdefault("OSG_SITE_NAME", "siteNotFound")

bin/stashcp Outdated
f.close()
except:
logging.error("Error posting to ES")
except urllib2.URLError as e:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this format requires what, python 2.7? That means this would eliminate using the system python on RHEL6.

Copy link
Contributor

@bbockelm bbockelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@djw8605 djw8605 merged commit 4e97c3d into opensciencegrid:develop Dec 7, 2016
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