Changeset 7036


Ignore:
Timestamp:
May 14, 2009, 2:25:40 PM (15 years ago)
Author:
rwilson
Message:

Merge from numpy branch.

Location:
anuga_core/source/anuga/utilities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/log.py

    r7007 r7036  
    5959NOTSET = logging.NOTSET
    6060
    61 # set True if python version 2.5 or later
     61# set new_python to True if python version 2.5 or later
    6262(version_major, version_minor, _, _, _) = sys.version_info
    6363new_python = ((version_major == 2 and version_minor >= 5) or version_major > 2)
  • anuga_core/source/anuga/utilities/system_tools.py

    r7013 r7036  
    449449# @param files A list of files (or directories) to tar.
    450450# @param tarfile The created tarfile name.
     451# @note 'files' may be a string (single file) or a list of strings.
    451452# @note We use gzip compression.
    452453def tar_file(files, tarname):
    453454    '''Compress a file or directory into a tar file.'''
     455
     456    if isinstance(files, basestring):
     457        files = [files]
    454458
    455459    o = tarfile.open(tarname, 'w:gz')
Note: See TracChangeset for help on using the changeset viewer.