Skip to content

Commit

Permalink
fix problem which cropped up in new python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kaufman committed Jan 24, 2017
1 parent 20783f4 commit 49d60e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hatchery/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
import microcache
import pypandoc
import funcy
from pkg_resources.extern import packaging
from . import helpers

# packaging got moved into its own top-level package in recent python versions
try:
from pkg_resources.extern import packaging
except ImportError:
import packaging

logger = logging.getLogger(__name__)
logging.getLogger('requests').setLevel(logging.ERROR)

Expand Down

0 comments on commit 49d60e8

Please sign in to comment.