← Back to team overview

duplicity-team team mailing list archive

[Merge] lp:~ed.so/duplicity/fix.dpbx.import into lp:duplicity

 

edso has proposed merging lp:~ed.so/duplicity/fix.dpbx.import into lp:duplicity.

Requested reviews:
  duplicity-team (duplicity-team)

For more details, see:
https://code.launchpad.net/~ed.so/duplicity/fix.dpbx.import/+merge/241697

fix dpbx import error import lazily
-- 
https://code.launchpad.net/~ed.so/duplicity/fix.dpbx.import/+merge/241697
Your team duplicity-team is requested to review the proposed merge of lp:~ed.so/duplicity/fix.dpbx.import into lp:duplicity.
=== modified file 'duplicity/backends/dpbxbackend.py'
--- duplicity/backends/dpbxbackend.py	2014-10-27 02:27:36 +0000
+++ duplicity/backends/dpbxbackend.py	2014-11-13 15:18:13 +0000
@@ -36,8 +36,6 @@
 from duplicity import util
 from duplicity.errors import BackendException
 
-from dropbox import client, rest, session
-
 
 # You can register your own developer account with Dropbox and
 # register a new application for yourself, obtaining the new
@@ -96,6 +94,9 @@
     """Connect to remote store using Dr*pB*x service"""
     def __init__(self, parsed_url):
         duplicity.backend.Backend.__init__(self, parsed_url)
+        
+        global client, rest, session
+        from dropbox import client, rest, session
 
         class StoredSession(session.DropboxSession):
             """a wrapper around DropboxSession that stores a token to a file on disk"""


Follow ups