[New-bugs-announce] [issue19852] Misplaced private API method in pathlib.py

Vajrasky Kok report at bugs.python.org
Sun Dec 1 15:36:59 CET 2013


New submission from Vajrasky Kok:

In class Path, line 942, you have this comment:

# Public API

but down there, in line 1048, you have this private method:

    def _raw_open(self, flags, mode=0o777):
        """
        Open the file pointed by this path and return a file descriptor,
        as os.open() does.
        """
        if self._closed:
            self._raise_closed()
        return self._accessor.open(self, flags, mode)

Here is the patch to move this private method to where it belongs.

----------
components: Library (Lib)
files: move_private_method_to_its_place.patch
keywords: patch
messages: 204926
nosy: pitrou, vajrasky
priority: normal
severity: normal
status: open
title: Misplaced private API method in pathlib.py
versions: Python 3.4
Added file: http://bugs.python.org/file32928/move_private_method_to_its_place.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19852>
_______________________________________


More information about the New-bugs-announce mailing list