Changes between Version 1 and Version 2 of YumCodeSnippet/YumSearch

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
02/02/09 17:54:33 (9 years ago)
Comment:

change my to yb, for consistency

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippet/YumSearch

    v1 v2  
    33{{{ 
    44#!python 
    5 my = yum.YumBase() 
    6 my.conf.cache = 1 
     5yb = yum.YumBase() 
     6yb.conf.cache = 1 
    77 
    88searchterms = sys.argv[1:] 
    1212 
    1313print '%s Searching %s' % tuple(['-' * 30] * 2) 
    14 res = my.searchGenerator(searchlist, searchterms) 
     14res = yb.searchGenerator(searchlist, searchterms) 
    1515 
    1616res = sorted(res, key=lambda x: x[0])