Changeset 8453


Ignore:
Timestamp:
Jun 22, 2012, 5:22:58 PM (12 years ago)
Author:
neweyv
Message:

raise Exception(msg) - Python2.6 upgrade. 8 occurences were fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/misc/tools/pytools/rcvs.py

    r18 r8453  
    9898if len(username) == 0:
    9999    msg = 'Could not infer user name from environment variable CVSROOT (%s)' %s
    100     raise msg
     100    raise Exception(msg)
    101101
    102102if len(cvs_client) == 0:
    103103    msg = 'Could not infer CVS client from environment variable CVSROOT (%s)' %s
    104     raise msg
     104    raise Exception(msg)
    105105
    106106
     
    159159
    160160    if not 'CVS' in os.listdir(localdir):
    161         raise 'No CVS directory in current directory'
     161        raise Exception('No CVS directory in current directory')
    162162
    163163    FN = localdir + sep + 'CVS' + sep + 'Entries'
     
    166166    except:
    167167        msg = 'Could not open %s' %FN
    168         raise msg
     168        raise Exception(msg)
    169169    else:
    170170        files = ''
     
    186186
    187187    if not 'CVS' in os.listdir(localdir):
    188         raise 'No CVS directory in current directory'
     188        raise Exception('No CVS directory in current directory')
    189189
    190190
     
    194194    except:
    195195        msg = 'Could not open %s' %FN
    196         raise msg
     196        raise Exception(msg)
    197197    else:
    198198        repository = fid.readlines()[0].strip()
     
    205205    #    msg = 'Local directory (%s) and ' %local
    206206    #    msg += 'CVS repository (%s) must have the same name' %repository
    207     #    raise msg
     207    #    raise Exception(msg)
    208208
    209209    return repository
     
    290290                pass
    291291                #msg = 'Could not create directory %s' %arg
    292                 #raise msg
     292                #raise Exception(msg)
    293293               
    294294            os.chdir(arg)
Note: See TracChangeset for help on using the changeset viewer.