Commits

Morten Lied Johansen committed 48c8849

Wrap lines to avoid problems with long lines in low res situations.

  • Participants
  • Parent commits f820de9

Comments (0)

Files changed (1)

src/code/new_type.py

 def make_type(type_name, attributes):
     return type(type_name, (object,), attributes)
 
-tags = [("b", {}), ("img", {"src": "http://url.com/img.jpg", "alt": "An image"})]
+tags = [
+    ("b", {}),
+    ("img", {"src": "http://url.com/img.jpg", "alt": "An image"})
+]
 for name, attributes in tags:
     t = make_type(name, attributes)
-    print t, ["%s: %s" % (key, getattr(t, key)) for key in t.__dict__ if not key.startswith("__")]
+    print t, ["%s: %s" % (key, getattr(t, key))
+                    for key in t.__dict__ if not key.startswith("__")]