Takeshi Komiya avatar Takeshi Komiya committed 60efd38

Fix pylint errors

Comments (0)

Files changed (4)


     def clear(cls):
-        super(NodeGroup, cls).clear()
+        super(Diagram, cls).clear()
         cls.shadow_style = 'blur'
         cls.linecolor = (0, 0, 0)
         cls.classes = {}


         self.path.append('H%s' % (x,))
     def relhline(self, x):
-        self.path.append('h%s %s' % (x,))
+        self.path.append('h%s' % (x,))
     def vline(self, y):
         self.path.append('V%s' % (y,))


         return metrics
     def textsize(self, string, font=None, width=65535):
-        if self.drawer:
-            return self.drawer.textsize(string, font, maxwidth=width)
-        else:
-            from blockdiag.imagedraw.textfolder.base import TextFolder
-            folder = TextFolder((0, 0, width, 65535), string, font)
-            return folder.outlinebox.size
+        return self.drawer.textsize(string, font, maxwidth=width)
     def node(self, node):
         renderer = noderenderer.get(node.shape)
         self.edge = edge
+    def headshapes(self):
+        pass
+    @property
+    def _shaft(self):
+        pass
+    @property
     def heads(self):
         heads = []
         head1, head2 = self.headshapes


     mapper = dict(x1=0, y1=1, x2=2, y2=3)
     def __init__(self, x1, y1, x2, y2):
-        return super(Box, self).__init__((x1, y1, x2, y2))
+        super(Box, self).__init__((x1, y1, x2, y2))
     def __getattr__(self, name):
         return self[self.mapper[name]]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.