Guest User

Untitled

a guest
Sep 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/usr/bin/python
  2. import subprocess
  3.  
  4. archivos = subprocess.check_output(["git", "diff", "HEAD^", "HEAD", "--name-only"])
  5.  
  6. try:
  7. print subprocess.check_output("grep -nHe console " + archivos.replace('\n', ' '), stderr=subprocess.STDOUT, shell=True)
  8. except Exception, e:
  9. print
Add Comment
Please, Sign In to add comment