Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.77 KB | None | 0 0
  1. Index: quibble/backend.py
  2. IDEA additional info:
  3. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  4. <+>UTF-8
  5. ===================================================================
  6. --- quibble/backend.py  (date 1533221393000)
  7. +++ quibble/backend.py  (date 1533221393000)
  8. @@ -223,6 +223,18 @@
  9.          return self.socket
  10.  
  11.      def __del__(self):
  12. +        mysqldump = open("/tmp/dumpy2.sql","wb")
  13. +        subprocess.Popen([
  14. +                'mysqldump',
  15. +                '--socket=%s' % self.socket,
  16. +                '--user=root',
  17. +                '--all-databases'
  18. +            ],
  19. +            universal_newlines=True,
  20. +            stdin=subprocess.PIPE,
  21. +            stdout=mysqldump,
  22. +            stderr=mysqldump,
  23. +        ).wait()
  24.          self.stop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement