Back to index

apport  2.3
Namespaces | Functions
apport Namespace Reference

Namespaces

namespace  crashdb
namespace  crashdb_impl
namespace  fileutils
namespace  hookutils
namespace  packaging
namespace  report
namespace  REThread
namespace  ui

Functions

def unicode_gettext
def fatal
def error
def warning

Function Documentation

def apport.error (   msg,
  args 
)
Print out an error message.

Definition at line 29 of file __init__.py.

00029 
00030 def error(msg, *args):
00031     '''Print out an error message.'''
00032 
00033     sys.stderr.write('ERROR: ')
00034     sys.stderr.write(msg % args)
00035     sys.stderr.write('\n')
00036 

Here is the caller graph for this function:

def apport.fatal (   msg,
  args 
)
Print out an error message and exit the program.

Definition at line 22 of file __init__.py.

00022 
00023 def fatal(msg, *args):
00024     '''Print out an error message and exit the program.'''
00025 
00026     error(msg, *args)
00027     sys.exit(1)
00028 

Here is the call graph for this function:

Here is the caller graph for this function:

def apport.unicode_gettext (   str)

Definition at line 14 of file __init__.py.

00014 
00015 def unicode_gettext(str):
00016     trans = gettext.gettext(str)
00017     if type(trans) == type(b''):
00018         return trans.decode('UTF-8')
00019     else:
00020         return trans
00021 

def apport.warning (   msg,
  args 
)
Print out an warning message.

Definition at line 37 of file __init__.py.

00037 
00038 def warning(msg, *args):
00039     '''Print out an warning message.'''
00040 
00041     sys.stderr.write('WARNING: ')
00042     sys.stderr.write(msg % args)
00043     sys.stderr.write('\n')

Here is the caller graph for this function: