summaryrefslogtreecommitdiff
path: root/examples/inheritance
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-02 14:23:42 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-02 14:23:42 -0500
commit350aed3fdb9f1e73e69655e53f44ca6a91c196da (patch)
tree3d2a128667b5f6ca6d0b4e1f4865fc98aac6b60b /examples/inheritance
parent71f92436bdc86f30e2c21d8f5244733601e8c39e (diff)
downloadsqlalchemy-350aed3fdb9f1e73e69655e53f44ca6a91c196da.tar.gz
- whitespace removal bonanza
Diffstat (limited to 'examples/inheritance')
-rw-r--r--examples/inheritance/concrete.py4
-rw-r--r--examples/inheritance/polymorph.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/inheritance/concrete.py b/examples/inheritance/concrete.py
index eb832a55d..84fc79cd5 100644
--- a/examples/inheritance/concrete.py
+++ b/examples/inheritance/concrete.py
@@ -25,7 +25,7 @@ class Employee(object):
self.name = name
def __repr__(self):
return self.__class__.__name__ + " " + self.name
-
+
class Manager(Employee):
def __init__(self, name, manager_data):
self.name = name
@@ -33,7 +33,7 @@ class Manager(Employee):
def __repr__(self):
return self.__class__.__name__ + " " + \
self.name + " " + self.manager_data
-
+
class Engineer(Employee):
def __init__(self, name, engineer_info):
self.name = name
diff --git a/examples/inheritance/polymorph.py b/examples/inheritance/polymorph.py
index 87c2de10e..316671bed 100644
--- a/examples/inheritance/polymorph.py
+++ b/examples/inheritance/polymorph.py
@@ -20,7 +20,7 @@ people = Table('people', metadata,
Column('company_id', Integer, ForeignKey('companies.company_id')),
Column('name', String(50)),
Column('type', String(30)))
-
+
engineers = Table('engineers', metadata,
Column('person_id', Integer, ForeignKey('people.person_id'),
primary_key=True),
@@ -28,14 +28,14 @@ engineers = Table('engineers', metadata,
Column('engineer_name', String(50)),
Column('primary_language', String(50)),
)
-
+
managers = Table('managers', metadata,
Column('person_id', Integer, ForeignKey('people.person_id'),
primary_key=True),
Column('status', String(30)),
Column('manager_name', String(50))
)
-
+
# create our classes. The Engineer and Manager classes extend from Person.
class Person(object):
def __init__(self, **kwargs):