@@ -33,25 +33,6 @@ class RHBugzilla(_parent):
3333 '''
3434
3535 def __init__ (self , * args , ** kwargs ):
36- """
37- @rhbz_back_compat: If True, convert parameters to the format they were
38- in prior RHBZ upgrade in June 2012. Mostly this replaces lists
39- with comma separated strings, and alters groups and flags.
40- Default is False. Please don't use this in new code, just update
41- your scripts.
42- @multicall: Unused nowadays, will be removed in the future
43- """
44- # 'multicall' is no longer used, just ignore it
45- multicall = kwargs .pop ("multicall" , None )
46- self .rhbz_back_compat = bool (kwargs .pop ("rhbz_back_compat" , False ))
47-
48- if multicall is not None :
49- log .warn ("multicall is unused and will be removed in a "
50- "future release." )
51-
52- if self .rhbz_back_compat :
53- log .warn ("rhbz_back_compat will be removed in a future release." )
54-
5536 _parent .__init__ (self , * args , ** kwargs )
5637
5738 def _add_both_alias (newname , origname ):
@@ -325,43 +306,6 @@ def post_translation(self, query, bug):
325306 values += vallist
326307 bug ['sub_component' ] = " " .join (values )
327308
328- if not self .rhbz_back_compat :
329- return
330-
331- if 'flags' in bug and isinstance (bug ["flags" ], list ):
332- tmpstr = []
333- for tmp in bug ['flags' ]:
334- tmpstr .append ("%s%s" % (tmp ['name' ], tmp ['status' ]))
335-
336- bug ['flags' ] = "," .join (tmpstr )
337-
338- if 'blocks' in bug and isinstance (bug ["blocks" ], list ):
339- # Aliases will handle the 'blockedby' and 'blocked' back compat
340- bug ['blocks' ] = ',' .join ([str (b ) for b in bug ['blocks' ]])
341-
342- if 'keywords' in bug and isinstance (bug ["keywords" ], list ):
343- bug ['keywords' ] = ',' .join (bug ['keywords' ])
344-
345- if 'alias' in bug and isinstance (bug ["alias" ], list ):
346- bug ['alias' ] = ',' .join (bug ['alias' ])
347-
348- if ('groups' in bug and
349- isinstance (bug ["groups" ], list ) and
350- len (bug ["groups" ]) > 0 and
351- isinstance (bug ["groups" ][0 ], str )):
352- # groups went to the opposite direction: it got simpler
353- # instead of having name, ison, description, it's now just
354- # an array of strings of the groups the bug belongs to
355- # we're emulating the old behaviour here
356- tmp = []
357- for g in bug ['groups' ]:
358- t = {}
359- t ['name' ] = g
360- t ['description' ] = g
361- t ['ison' ] = 1
362- tmp .append (t )
363- bug ['groups' ] = tmp
364-
365309 def build_external_tracker_boolean_query (
366310 self , ext_type_description = None , ext_type_url = None ,
367311 ext_bz_bug_id = None , ext_status = None ):
0 commit comments