1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env python3 import sys import portage.dep as dep input = sys.stdin.read().strip() try: dep.Atom(input) except Exception as e: sys.exit(1) sys.exit(0)