human
Solve the following python programming problem given the following code:
def make_qs(query_args) : 
    def _encode(s) : 
        if isinstance (s, unicode_type) : 
            return s.encode ('utf-8') 
else : 
            return s 
kv_pairs = [] 
    for (key, val) in query_args.items () : 
        if (val is not None) : 
            encoded_key = _encode (key) 
            if isinstance (val, ITERABLE) : 
                for v in val : 
                    kv_pairs.append ((encoded_key, _encode (v))) 
else : 
                kv_pairs.append ((encoded_key, _encode (val))) 
qs = urlencode (query_args, doseq = True) 
    return qs 

    
    

    Fix the buggy line: qs = urlencode (query_args, doseq = True)
assistant
#Here is Python code to fix the buggy line: qs = urlencode (query_args, doseq = True)
.

qs = urlencode (kv_pairs, doseq = True)