From b569ba9567740cbd9896da5620d6d65419879177 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: May 08 2020 23:28:47 +0000 Subject: helpers.py: pylint cleanups Signed-off-by: Adam Williamson --- diff --git a/src/wikitcms/helpers.py b/src/wikitcms/helpers.py index a70e651..bcefd59 100644 --- a/src/wikitcms/helpers.py +++ b/src/wikitcms/helpers.py @@ -20,9 +20,7 @@ """This file contains helper functions that don't strictly belong in any particular class or even in another file but outside of a class.""" -import os import re -from collections import OrderedDict from decimal import Decimal import fedfind.helpers @@ -205,10 +203,11 @@ def cid_to_event(cid): (milestone, compose) = ffrel.label.rsplit('-', 1) return (dist, release, milestone, compose) - # FIXME: we have no idea yet what to do for 'test' composes if not typ == "nightly": + # we don't have validation events for any compose types other + # than 'production' and 'nightly' raise ValueError( - "cid_to_event(): cannot guess event for 'test' compose yet!") + "cid_to_event(): cannot guess event for 'test' compose") # nightlies if release == "rawhide":