mirror of
https://github.com/wassname/ray.git
synced 2026-08-02 13:01:01 +08:00
Remove (object) from class declarations. (#6658)
This commit is contained in:
committed by
Philipp Moritz
parent
f1b56fa5ee
commit
39a3459886
@@ -23,7 +23,7 @@ parser.add_argument(
|
||||
# A custom data source that reads articles from wikipedia
|
||||
# Custom data sources need to implement a get_next() method
|
||||
# that returns the next data element, in this case sentences
|
||||
class Wikipedia(object):
|
||||
class Wikipedia:
|
||||
def __init__(self, title_file):
|
||||
# Titles in this file will be as queries
|
||||
self.title_file = title_file
|
||||
|
||||
Reference in New Issue
Block a user