mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
fix(pipreqs): py3 print support
This commit is contained in:
parent
9810c3ab53
commit
b55814a40d
@ -10,6 +10,7 @@ Options:
|
|||||||
--debug prints debug information.
|
--debug prints debug information.
|
||||||
--savepath path to requirements.txt (Optional)
|
--savepath path to requirements.txt (Optional)
|
||||||
"""
|
"""
|
||||||
|
from __future__ import print_function
|
||||||
import os, re, logging
|
import os, re, logging
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
import yarg
|
import yarg
|
||||||
@ -80,7 +81,7 @@ def init(args):
|
|||||||
imports_with_info = get_imports_info(imports)
|
imports_with_info = get_imports_info(imports)
|
||||||
path = args["--savepath"] if args["--savepath"] else os.path.join(args['<path>'],"requirements.txt")
|
path = args["--savepath"] if args["--savepath"] else os.path.join(args['<path>'],"requirements.txt")
|
||||||
generate_requirements_file(path, imports_with_info)
|
generate_requirements_file(path, imports_with_info)
|
||||||
print "Successfuly saved requirements file in: " + path
|
print ("Successfuly saved requirements file in: " + path)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = docopt(__doc__, version='xstat 0.1')
|
args = docopt(__doc__, version='xstat 0.1')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user