~ubuntu-branches/debian/sid/pyro/sid

« back to all changes in this revision

Viewing changes to examples/exceptions/excep.py

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Goretkin
  • Date: 2011-08-21 16:04:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110821160400-ugc9tghmf0ycxzwp
Tags: 1:3.14-1
* New upstream release
    - /usr/bin/pyro-rns was removed by upstream
* SECURITY UPDATE: arbitrary file overwriting via symlink (Closes: #631912,
  LP: #830742)
    - store pidfile in /var/run instead of /tmp
    - Pyro/ext/daemonizer.py changed default location to /var/run
    - Pyro/ext/daemonizer.py added command-line parameter (--pidfile=...) to
      override default pidfile location
    - default location for pidfile is tunable via /etc/default/pyro-nsd
    - CVE-2011-2765 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
class MyError(Exception):
2
2
        pass
3
3
 
4
 
class testclass:
 
4
class testclass(object):
5
5
        def div(s, arg1, arg2): return arg1/arg2
6
6
        def error(s):           raise ValueError('a valueerror! Great!')
7
7
        def error2(s):           return ValueError('a valueerror! Great!')
12
12
                x.crash()
13
13
 
14
14
 
15
 
class foo:
 
15
class foo(object):
16
16
        def crash(s):
17
17
                s.crash2('going down...')
18
18
        def crash2(s, arg):