Skip to content

Commit

Permalink
Include the forge in the uri only on the fasten format
Browse files Browse the repository at this point in the history
  • Loading branch information
gdrosos committed Jun 5, 2022
1 parent 9b6a58a commit 6233ff1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stitcher/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main():
stitcher = Stitcher(args.call_graph, args.simple)
stitcher.stitch()

output = json.dumps(stitcher.output())
output = json.dumps(stitcher.output(), indent=2)
if args.output:
with open(args.output, "w+") as f:
f.write(output)
Expand Down
6 changes: 4 additions & 2 deletions stitcher/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ def get_class_hier(self):
def to_string(self, simple=False):
uri = ""
if not simple:
uri += "fasten:"
uri += "//" + "PyPI!" +self.product
uri += "fasten://PyPI!"
else:
uri += "//"
uri += self.product
if self.version and not simple:
uri += "$" + self.version
uri += "/" + self.modname + "/" + self.callable
Expand Down

0 comments on commit 6233ff1

Please sign in to comment.