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

Don't set a default argument as a mutable type #4034

Merged
merged 2 commits into from
Feb 22, 2018
Merged

Commits on Feb 22, 2018

  1. Don't set a default argument as a mutable type

    When you run this a second time, `headers` will be the value they were last time you ran it. That seems bad.
    
    http://docs.python-guide.org/en/latest/writing/gotchas/
    CarlQLange committed Feb 22, 2018
    Configuration menu
    Copy the full SHA
    9d8af3d View commit details
    Browse the repository at this point in the history
  2. Fix pep8

    CarlQLange committed Feb 22, 2018
    Configuration menu
    Copy the full SHA
    ef0598b View commit details
    Browse the repository at this point in the history