ssh-pexpect backend syntax error

Bug #1844950 reported by az
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.