diff --git a/doc/example_top_artists.rst b/doc/example_top_artists.rst index 0f643cd423..b772202636 100644 --- a/doc/example_top_artists.rst +++ b/doc/example_top_artists.rst @@ -188,7 +188,7 @@ you can reuse for a lot of different tasks. .. code:: python - class ArtistToplistToDatabase(luigi.postgres.CopyToTable): + class ArtistToplistToDatabase(luigi.contrib.postgres.CopyToTable): date_interval = luigi.DateIntervalParameter() use_hadoop = luigi.BoolParameter() diff --git a/examples/top_artists.py b/examples/top_artists.py index 3a7504857c..c156e8c817 100755 --- a/examples/top_artists.py +++ b/examples/top_artists.py @@ -24,7 +24,7 @@ import luigi import luigi.contrib.hadoop import luigi.contrib.hdfs -import luigi.postgres +import luigi.contrib.postgres class ExternalStreams(luigi.ExternalTask): @@ -244,7 +244,7 @@ def _input_iterator(self): yield int(streams), artist -class ArtistToplistToDatabase(luigi.postgres.CopyToTable): +class ArtistToplistToDatabase(luigi.contrib.postgres.CopyToTable): """ This task runs a :py:class:`luigi.postgres.CopyToTable` task over the target data returned by :py:meth:`~/.Top10Artists.output` and