summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorJan Christoph Ebersbach <jceb@e-jc.de>2019-04-30 06:35:34 +0200
committerDrashna Jaelre <drashna@live.com>2019-04-29 21:35:34 -0700
commit4c2453aa1b71d269f67a25c89848965f9a6d2925 (patch)
tree0a21ffbc57d9405c5dfcaf269bee686155c3bc32 /keyboards
parentc745d9b82e3f2047feb97a7a8937f27c6e989fd7 (diff)
[Keyboard] Signum3.0 remove sortedcontainers (#5679)
* Remove dependency on sortedcontainers * Sort dictionary on output
Diffstat (limited to 'keyboards')
-rwxr-xr-xkeyboards/signum/3_0/elitec/keymaps/default/generate_km.py3
-rw-r--r--keyboards/signum/3_0/elitec/keymaps/default/layout.py6
-rw-r--r--keyboards/signum/3_0/elitec/keymaps/default/readme.md4
3 files changed, 3 insertions, 10 deletions
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py b/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
index 7778da8f55..05996d06ca 100755
--- a/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
+++ b/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-from sortedcontainers import SortedDict
import layout
import re
@@ -11,7 +10,7 @@ import re
def gen_uc_iter():
length = len(layout.uc_dict)
- for key, value in layout.uc_dict.items():
+ for key, value in sorted(layout.uc_dict.items()):
length -= 1
if length:
yield (key, value, False)
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/layout.py b/keyboards/signum/3_0/elitec/keymaps/default/layout.py
index bc744593b6..5a796c8623 100644
--- a/keyboards/signum/3_0/elitec/keymaps/default/layout.py
+++ b/keyboards/signum/3_0/elitec/keymaps/default/layout.py
@@ -1,11 +1,9 @@
-from sortedcontainers import SortedDict
-
# Add all used Unicode symbols to this list.
# The key (e.g. "SNEK") is used in keymap.c for "enum", "unicode_map" and "keymaps", so it needs to be a valid C variable name.
# The key is also used in this file to define the layout, so use recognizeable names.
# The value (e.g. "0x1f40d") is used in keymap.c for "unicode_map" and to automatically generate the "ASCII"-art comments.
# When adding new Unicode names, use "0x1f40d" until you looked up the correct Unicode code point.
-uc_dict = SortedDict({
+uc_dict = {
"SNEK": "0x1f40d", ## Error
## qwertz
"ACUTE": "0x00b4",
@@ -329,7 +327,7 @@ uc_dict = SortedDict({
"NOT_PARA": "0x2226",
"TIMES_OP": "0x2297",
"NOT_DIV": "0x2224"
-})
+}
# Add all used Keycodes to this list.
# The key (e.g. "a") is used in keymap.c to automatically generate the comments. The first 7 chars will show as a keycap legend.
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/readme.md b/keyboards/signum/3_0/elitec/keymaps/default/readme.md
index efd43a9bf9..54db18cd31 100644
--- a/keyboards/signum/3_0/elitec/keymaps/default/readme.md
+++ b/keyboards/signum/3_0/elitec/keymaps/default/readme.md
@@ -11,10 +11,6 @@ starting point to create your own layouts for the Signum 3.0 with
# Customization
-- Install `python3` and [Sorted Containers
- Library](http://www.grantjenks.com/docs/sortedcontainers/), `pip
- install sortedcontainers`.
-
- Customize `layout.py` to your liking.
- Attention 1: keycodes are either translated into symbols and
function calls via the `translate()` function in `generate_km.py`