ssh-pexpect backend syntax error

Bug #1844950 reported by az on 2019-09-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Medium
Unassigned

Bug Description

this is a forward of debian bug #940986, which lives over there: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940986

a debian user reports that pypy3 rejects the ssh-pexpect backend file with the error message
Failed to byte-compile /usr/lib/python3/dist-packages/duplicity/backends/ssh_pexpect_backend.py: File "/usr/lib/python3/dist-packages/duplicity/backends/ssh_pexpect_backend.py", line 52
    global pexpect
    ^
SyntaxError: name 'pexpect' is assigned to before global declaration

as far as i understand matters the "global pexpect" statement should precede the "import pexpect"; with that small change made byte-compilation succeeds.

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.8.05
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers