Skip to content

Commit

Permalink
Python 2 compat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Dec 14, 2018
1 parent 5ecc58d commit 62486f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions streamparse/cli/jar.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
from .common import add_simple_jar


try:
FileNotFoundError
except NameError:
# py2
FileNotFoundError = IOError


def jar_for_deploy(simple_jar=False):
""" Build a jar to use for deploying the topology. """
# Create _resources folder which will contain Python code in JAR
Expand Down

0 comments on commit 62486f8

Please sign in to comment.