Skip to content

Refactoring: replace data value path_info by classes #1588

@dmpetrov

Description

@dmpetrov

Manipilating with data values does not seem like a good practice:

self.path_info = {"scheme": "hdfs", "user": self.user}

It can be replaced by classes:

class BasePathInfo(object):
    def __init__(self, path=None):
    ....

class HdfsPathInfo(BasePathInfo):
    def __init__(self, path=None):
    ....

etc...

Metadata

Metadata

Assignees

Labels

refactoringFactoring and re-factoring

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions