object patch
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# portfolio.py
|
||||
|
||||
class Portfolio(object):
|
||||
class Portfolio:
|
||||
def __init__(self, holdings):
|
||||
self._holdings = holdings
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# stock.py
|
||||
|
||||
class Stock(object):
|
||||
class Stock:
|
||||
'''
|
||||
An instance of a stock holding consisting of name, shares, and price.
|
||||
'''
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# tableformat.py
|
||||
|
||||
class TableFormatter(object):
|
||||
class TableFormatter:
|
||||
def headings(self, headers):
|
||||
'''
|
||||
Emit the table headers
|
||||
|
||||
Reference in New Issue
Block a user