-
Notifications
You must be signed in to change notification settings - Fork 16
Pylint Starting #33
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
Pylint Starting #33
Conversation
bin/stashcp
Outdated
| if 'OSG_SITE_NAME' in os.environ: | ||
| sitename = os.environ['OSG_SITE_NAME'] | ||
| else: | ||
| sitename = "siteNotFound" |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
bbockelm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Eliminate all of the errors and warnings in the pylint. But there are a ton of convention warnings and refactor warnings.