Untitled

From Stained Ostrich, 5 Years ago, written in Plain Text, viewed 797 times.
URL https://p.gaa.st/view/8724417 Embed
Download Paste or View Raw
  1.         base_ref = args.revision
  2.         g = subprocess.Popen(["git", "ls-tree", "-r", base_ref, "--name-only", "menu"], stdout=subprocess.PIPE, encoding="utf-8")
  3.         flist, _ = g.communicate()
  4.         for fn in flist.splitlines():
  5.                 g = subprocess.Popen(["git", "show", "%s:%s" % (base_ref, fn)], stdout=subprocess.PIPE, encoding="utf-8")
  6.                 all[fn] = json.load(g.stdout)
  7.  

Reply to "Untitled"

Here you can reply to the paste above