Skip to content

Commit

Permalink
Merge b0423cd into 1520854
Browse files Browse the repository at this point in the history
  • Loading branch information
aalok-sathe committed Feb 12, 2019
2 parents 1520854 + b0423cd commit 50854f7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pipreqs/pipreqs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""pipreqs - Generate pip requirements.txt file based on imports
Expand Down Expand Up @@ -32,7 +32,7 @@
--clean <file> Clean up requirements.txt by removing modules
that are not imported in project.
"""
from __future__ import print_function, absolute_import
# from __future__ import print_function, absolute_import
from contextlib import contextmanager
import os
import sys
Expand All @@ -46,7 +46,10 @@
from yarg import json2package
from yarg.exceptions import HTTPError

from pipreqs import __version__
try:
from pipreqs import __version__
except ImportError:
from __init__ import __version__

REGEXP = [
re.compile(r'^import (.+)$'),
Expand Down

0 comments on commit 50854f7

Please sign in to comment.