Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[luigi.file] removed #2832

Merged
merged 2 commits into from
Nov 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion luigi/contrib/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import io

import luigi
import luigi.file
import luigi.local_target
import luigi.format
import luigi.target
from luigi.format import FileWrapper
Expand Down
2 changes: 1 addition & 1 deletion luigi/contrib/opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import json

from luigi.file import LocalTarget
from luigi.local_target import LocalTarget
from luigi.mock import MockTarget
from luigi.contrib.s3 import S3Target
from luigi.target import FileSystemException
Expand Down
26 changes: 0 additions & 26 deletions luigi/file.py

This file was deleted.

4 changes: 2 additions & 2 deletions luigi/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def copy(self, path, dest):

class FileSystemTarget(Target):
"""
Base class for FileSystem Targets like :class:`~luigi.file.LocalTarget` and :class:`~luigi.contrib.hdfs.HdfsTarget`.
Base class for FileSystem Targets like :class:`~luigi.local_target.LocalTarget` and :class:`~luigi.contrib.hdfs.HdfsTarget`.

A FileSystemTarget has an associated :py:class:`FileSystem` to which certain operations can be
delegated. By default, :py:meth:`exists` and :py:meth:`remove` are delegated to the
Expand Down Expand Up @@ -316,7 +316,7 @@ class AtomicLocalFile(io.BufferedWriter):
moving it to its final destination.

This class is just for the writing part of the Target. See
:class:`luigi.file.LocalTarget` for example
:class:`luigi.local_target.LocalTarget` for example
"""

def __init__(self, path):
Expand Down
6 changes: 3 additions & 3 deletions test/contrib/opener_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from luigi.contrib.opener import OpenerTarget, NoOpenerError
from luigi.mock import MockTarget
from luigi.file import LocalTarget
from luigi.local_target import LocalTarget

from nose.plugins.attrib import attr

Expand Down Expand Up @@ -79,8 +79,8 @@ def test_local_target(self):
target.open('w').close()
self.assertTrue(LocalTarget.fs.exists(self.local_file))

@mock.patch('luigi.file.LocalTarget.__init__')
@mock.patch('luigi.file.LocalTarget.__del__')
@mock.patch('luigi.local_target.LocalTarget.__init__')
@mock.patch('luigi.local_target.LocalTarget.__del__')
def test_local_tmp_target(self, lt_del_patch, lt_init_patch):
'''Verify local target url with query string

Expand Down