in uberpoet/dotreader.py [0:0]
def extract_buck_target(text):
# type: (str) -> str
"""
Extracts the target name from a buck target path. Ex: //a/b/c:target -> target
If the target is invalid, just returns the original text.
"""
parts = text.split(":")
if len(parts) != 2:
return text
return parts[1]