summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunai <andunai@gmail.com>2018-01-02 19:28:46 +0200
committerAndrew Dunai <andunai@gmail.com>2018-01-02 19:28:46 +0200
commit8165306ce8d79f3b4b2cafd7a1aeb60cdeeb7d2e (patch)
tree58bbbacee4cf3a0d0cdcf8cbc12cc0358301054c
parent1d0638d8af1ff65aa0e5a0d199b5420261ff93be (diff)
downloadurwid-8165306ce8d79f3b4b2cafd7a1aeb60cdeeb7d2e.tar.gz
String literal fixes
-rw-r--r--urwid/compat.py5
-rwxr-xr-xurwid/font.py12
-rw-r--r--urwid/util.py1
3 files changed, 10 insertions, 8 deletions
diff --git a/urwid/compat.py b/urwid/compat.py
index 96021cf..702abf1 100644
--- a/urwid/compat.py
+++ b/urwid/compat.py
@@ -53,7 +53,10 @@ else:
def with_metaclass(meta, *bases):
- """Create a base class with a metaclass."""
+ """
+ Create a base class with a metaclass.
+ Taken from "six" library (https://pythonhosted.org/six/).
+ """
# This requires a bit of explanation: the basic idea is to make a dummy
# metaclass for one level of class instantiation that replaces itself with
# the actual metaclass.
diff --git a/urwid/font.py b/urwid/font.py
index d5d94eb..0c5954f 100755
--- a/urwid/font.py
+++ b/urwid/font.py
@@ -149,7 +149,7 @@ class Thin3x3Font(Font):
┌─┐ ┐ ┌─┐┌─┐ ┐┌─ ┌─ ┌─┐┌─┐┌─┐ │
│ │ │ ┌─┘ ─┤└─┼└─┐├─┐ ┼├─┤└─┤ │
└─┘ ┴ └─ └─┘ ┴ ─┘└─┘ ┴└─┘ ─┘ .
-""", ur"""
+""", u"""
"###$$$%%%'*++,--.///:;==???[[\\\]]^__`
" ┼┼┌┼┐O /' /.. _┌─┐┌ \ ┐^ `
┼┼└┼┐ / * ┼ ─ / ., _ ┌┘│ \ │
@@ -181,7 +181,7 @@ class HalfBlock5x4Font(Font):
▀█▀█▀ ▀▄█▄ █ ▀▄▀ ▐▌ ▐▌ ▄▄█▄▄ ▄▄█▄▄ ▄▄▄▄ █ ▀ ▀
▀█▀█▀ ▄ █ █ ▐▌▄ █ ▀▄▌▐▌ ▐▌ ▄▀▄ █ ▐▌ ▀ ▄▀
▀ ▀ ▀▀▀ ▀ ▀ ▀▀ ▀ ▀ ▄▀ ▀ ▀
-''', ur"""
+''', u"""
<<<<<=====>>>>>?????@@@@@@[[[[\\\\]]]]^^^^____```{{{{||}}}}~~~~''´´´
▄▀ ▀▄ ▄▀▀▄ ▄▀▀▀▄ █▀▀ ▐▌ ▀▀█ ▄▀▄ ▀▄ ▄▀ █ ▀▄ ▄ █ ▄▀
▄▀ ▀▀▀▀ ▀▄ ▄▀ █ █▀█ █ █ █ ▄▀ █ ▀▄ ▐▐▌▌
@@ -260,7 +260,7 @@ class Thin6x6Font(Font):
│ │ │ │ │ │ │ │ │ │ │ │ │
└───┘ ┴ └─── └───┘ ┴ ───┘ └───┘ ┴ └───┘ ───┘
-""", ur'''
+""", u'''
!! """######$$$$$$%%%%%%&&&&&&((()))******++++++
│ ││ ┌ ┌ ┌─┼─┐ ┌┐ / ┌─┐ / \
│ ─┼─┼─ │ │ └┘ / │ │ │ │ \ / │
@@ -268,7 +268,7 @@ class Thin6x6Font(Font):
│ ─┼─┼─ │ │ / ┌┐ │ \, │ │ / \ │
. ┘ ┘ └─┼─┘ / └┘ └───\ \ /
-''', ur"""
+''', u"""
,,-----..//////::;;<<<<=====>>>>??????@@@@@@
/ ┌───┐ ┌───┐
/ . . / ──── \ │ │┌──┤
@@ -276,7 +276,7 @@ class Thin6x6Font(Font):
/ . , \ ──── / │ │└──┘
, . / \ / . └───┘
-""", ur"""
+""", u"""
[[\\\\\\]]^^^____``{{||}}~~~~~~
┌ \ ┐ /\ \ ┌ │ ┐
│ \ │ │ │ │ ┌─┐
@@ -365,7 +365,7 @@ class HalfBlock7x7Font(Font):
█▌ ▀ ▀█▌ ▐█▀ ▐█ ▀▀▀
▐█ ▐█ ▐█ █▌ ▀███▀
-""", ur"""
+""", u"""
[[[[\\\\\]]]]^^^^^^^_____```{{{{{|||}}}}}~~~~~~~´´´
▐██▌▐█ ▐██▌ ▐█▌ ▐█ █▌▐█ ▐█ █▌
▐█ █▌ █▌ ▐█ █▌ █▌ █▌ ▐█ ▐█ ▄▄ ▐█
diff --git a/urwid/util.py b/urwid/util.py
index d5e0efa..718da21 100644
--- a/urwid/util.py
+++ b/urwid/util.py
@@ -432,7 +432,6 @@ class MetaSuper(type):
"""adding .__super"""
def __init__(cls, name, bases, d):
super(MetaSuper, cls).__init__(name, bases, d)
- print('ASD')
if hasattr(cls, "_%s__super" % name):
raise AttributeError("Class has same name as one of its super classes")
setattr(cls, "_%s__super" % name, super(cls))