2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a class to write XBEL bookmark files. | 7 Module implementing a class to write XBEL bookmark files. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 from PyQt4.QtCore import QXmlStreamWriter, QIODevice, QFile, Qt | 12 from PyQt4.QtCore import QXmlStreamWriter, QIODevice, QFile, Qt |
11 | 13 |
12 from .BookmarkNode import BookmarkNode | 14 from .BookmarkNode import BookmarkNode |
13 | 15 |
18 """ | 20 """ |
19 def __init__(self): | 21 def __init__(self): |
20 """ | 22 """ |
21 Constructor | 23 Constructor |
22 """ | 24 """ |
23 super().__init__() | 25 super(XbelWriter, self).__init__() |
24 | 26 |
25 self.setAutoFormatting(True) | 27 self.setAutoFormatting(True) |
26 | 28 |
27 def write(self, fileNameOrDevice, root): | 29 def write(self, fileNameOrDevice, root): |
28 """ | 30 """ |