[New-bugs-announce] [issue33687] uu.py calls os.path.chmod which doesn't exist

Poul-Henning Kamp report at bugs.python.org
Tue May 29 18:02:07 EDT 2018


New submission from Poul-Henning Kamp <phk at FreeBSD.org>:

Library file uu.py on at least 2.7 and 3.6 contains:

            try:
                os.path.chmod(out_file, mode)
            except AttributeError:
                pass

As far as I can tell, os.path.chmod does not exist, so this always raises AttributeError and becomes a no-op.

Is suspect the proper fix is to remove the ".path" ?

----------
components: Library (Lib)
messages: 318119
nosy: bsdphk
priority: normal
severity: normal
status: open
title: uu.py calls os.path.chmod which doesn't exist
type: behavior
versions: Python 2.7, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33687>
_______________________________________


More information about the New-bugs-announce mailing list