~ubuntu-branches/ubuntu/natty/python-espeak/natty

« back to all changes in this revision

Viewing changes to espeak/_repr.py

  • Committer: Bazaar Package Importer
  • Author(s): Siegfried-Angel Gevatter Pujals
  • Date: 2009-11-17 18:55:04 UTC
  • Revision ID: james.westby@ubuntu.com-20091117185504-h1gz8r4t7h92qvrn
Tags: upstream-0.1
Import upstream version 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# For internal usage only
 
2
# -*- coding: utf-8 -*-
 
3
 
 
4
#
 
5
# Python bindings for the eSpeak speech synthesizer
 
6
#
 
7
# Copyright © 2009 Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com>
 
8
#
 
9
# This program is free software: you can redistribute it and/or modify
 
10
# it under the terms of the GNU General Public License as published by
 
11
# the Free Software Foundation, either version 3 of the License, or
 
12
# (at your option) any later version.
 
13
#
 
14
# This program is distributed in the hope that it will be useful,
 
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
# GNU General Public License for more details.
 
18
#
 
19
# You should have received a copy of the GNU General Public License
 
20
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
#
 
22
 
 
23
class Storage(object):
 
24
    """This is an empty class to store data in it."""
 
25
    
 
26
    def __init__(self, dict={}):
 
27
        for name, value in dict.iteritems():
 
28
            setattr(self, name, value)
 
29
    
 
30
    def __repr__(self):
 
31
        return str(vars(self))
 
32
 
 
33
class Voice(Storage): pass