try:
                namepart, archpart = target.rsplit('.', 1)
            except ValueError:
                pass
            else: