Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joestump/python-oauth2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: dirn/python-oauth2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Jul 14, 2013

  1. Use print_function for Python 3 support

    PEP 3105 changed `print` from a statement to a function. In order to use
    `print` with Python 3, all references need to be updated to a function.
    Python 2, however, raises a `SyntaxError` when treating `print` as a
    function. Importing `print_function` from __future__ allows `print` as a
    function on all versions of Python greater than or equal to 2.6.
    dirn committed Jul 14, 2013
    Configuration menu
    Copy the full SHA
    b0bc25e View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2013

  1. Remove redundant print

    In b0bc25e I turned the print statement into the print function. Upon
    further thought, print isn't needed at all because the exception that is
    raised immediately after serves the same purpose.
    dirn committed Jul 27, 2013
    Configuration menu
    Copy the full SHA
    e8a3ab7 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2013

  1. Update exception catching syntax

    In order to support newer versions of Python, the old syntax needs to be
    replaced. Sorry Python 2.5.
    dirn committed Sep 7, 2013
    Configuration menu
    Copy the full SHA
    bed739f View commit details
    Browse the repository at this point in the history
  2. Update imports

    `urlparse` has moved. Python 3 moved it to `urllib.parse`. A try/except
    can be used to handle supporting both Python 2 and 3. This also changes
    (and simplifies) how to get `parse_qs`.
    
    Since bed739f killed supported for Python 2.5, the old `sha` import can
    be removed, using only the newer import instead.
    dirn committed Sep 7, 2013
    Configuration menu
    Copy the full SHA
    97f39aa View commit details
    Browse the repository at this point in the history
Loading