Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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: GEGlobalResearch/java2python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
Loading
...
head repository: changeling/java2python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 6 files changed
  • 1 contributor

Commits on Jul 16, 2020

  1. Update Python 2 .next() to Python 3 next().

    `.next()` has been replaced with `next()` in Python 3. Fixed.
    changeling committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    ecc58f3 View commit details
    Browse the repository at this point in the history
  2. Replaced Python 2 isinstance(x, file) with `isinstance(x, io.IOBase…

    …)`. Updated `except` to use `as` keywords.
    
    Replaced Python 2 `isinstance(x, file)` with Python 3 `isinstance(x, io.IOBase)`.  Fixed.
    Python 3 no longer allows `file` in isinstance(), updated to use `io.IOBase`. Fixed.
    Python 3 requires `as` keyword in `except`, in place of comma separator. Fixed.
    `_levelNames` has been replaced with `_nameToLevel` in `logging`. Fixed.
    Changed `print 'IOError: %s.' % (msg, )` to `print(f'IOError: {msg}.')`
    changeling committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    b9c944a View commit details
    Browse the repository at this point in the history
  3. Update Python 2 print statements to Python 3 print(), including `…

    …>>` to `file=` syntax.
    
    Update Python 2 `print` statements to Python 3 `print()`, including `>>` to `file=` syntax.
    Python 2 `print >> fd, str` syntax is now `print(str, file=fd)` in Python 3.
    Implemented f-strings where relevant for these.
    changeling committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    148512e View commit details
    Browse the repository at this point in the history
  4. Update setup.py to install from GEGlobalResearch github with Python…

    … 3 `antlr-python3-runtime-3.1.3`.
    
    `setup.py` has been changed to install from  `https://github.com/GEGlobalResearch/java2python/archive/master.zip` and with the `antlr_python_runtime` from `https://github.com/altigee/antlr-python3-runtime-3.1.3/archive/master.zip`.
    changeling committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    71076c0 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.