repo.or.cz
/
dom-editor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Removed all support for multiple parent nodes.
[dom-editor.git]
/
Dome
/
Beep.py
blob
329690fd71d3447631710b9d75e39869a97b416a
1
class
Beep
(
Exception
):
2
def
__init__
(
self
,
message
=
None
,
may_record
=
0
):
3
self
.
may_record
=
may_record
4
if
message
:
print
"(Beep:
%s
)"
%
message
5
self
.
message
=
message
6
7
def
__str__
(
self
):
8
if
self
.
message
:
9
return
"<Beep:
%s
>"
%
self
.
message
10
else
:
11
return
"<Beep!>"