Show
Ignore:
Timestamp:
11/15/04 23:01:34 (19 years ago)
Author:
jalet
Message:

Improved banner handling.
Fix for raw printing and banners.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r1918 r1923  
    2222# 
    2323# $Log$ 
     24# Revision 1.141  2004/11/15 22:01:34  jalet 
     25# Improved banner handling. 
     26# Fix for raw printing and banners. 
     27# 
    2428# Revision 1.140  2004/11/15 19:59:34  jalet 
    2529# PyKota banners now basically work ! 
     
    626630    def display_version_and_quit(self) : 
    627631        """Displays version number, then exists successfully.""" 
    628         self.clean() 
     632        try : 
     633            self.clean() 
     634        except AttributeError :     
     635            pass 
    629636        print version.__version__ 
    630637        sys.exit(0) 
     
    632639    def display_usage_and_quit(self) : 
    633640        """Displays command line usage, then exists successfully.""" 
    634         self.clean() 
     641        try : 
     642            self.clean() 
     643        except AttributeError :     
     644            pass 
    635645        print _(self.documentation) % (version.__version__, version.__author__) 
    636646        sys.exit(0)