Changeset 2037


Ignore:
Timestamp:
24/01/07 11:01:02 (12 years ago)
Author:
domlowe
Message:

moving listify function to csmlextra.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csmllibs/csmlextra.py

    r2011 r2037  
    6464    return cleanstring 
    6565         
     66def listify(item): 
     67    ''' listify checks if an item is a list, if it isn't it puts it inside a list and returns it. Always returns a list object''' 
     68    if type(item) is list: 
     69        return item 
     70    else: 
     71        return [item]         
     72 
    6673def main(): 
    6774    #test to check randomness of getRandomID() 
Note: See TracChangeset for help on using the changeset viewer.