mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +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.
|
||||
--savepath path to requirements.txt (Optional)
|
||||
"""
|
||||
from __future__ import print_function
|
||||
import os, re, logging
|
||||
from docopt import docopt
|
||||
import yarg
|
||||
@ -80,7 +81,7 @@ def init(args):
|
||||
imports_with_info = get_imports_info(imports)
|
||||
path = args["--savepath"] if args["--savepath"] else os.path.join(args['<path>'],"requirements.txt")
|
||||
generate_requirements_file(path, imports_with_info)
|
||||
print "Successfuly saved requirements file in: " + path
|
||||
print ("Successfuly saved requirements file in: " + path)
|
||||
|
||||
def main():
|
||||
args = docopt(__doc__, version='xstat 0.1')
|
||||
|
Loading…
x
Reference in New Issue
Block a user