]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Signum3.0 remove sortedcontainers (#5679)
authorJan Christoph Ebersbach <jceb@e-jc.de>
Tue, 30 Apr 2019 04:35:34 +0000 (06:35 +0200)
committerDrashna Jaelre <drashna@live.com>
Tue, 30 Apr 2019 04:35:34 +0000 (21:35 -0700)
* Remove dependency on sortedcontainers

* Sort dictionary on output

keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
keyboards/signum/3_0/elitec/keymaps/default/layout.py
keyboards/signum/3_0/elitec/keymaps/default/readme.md

index 7778da8f5542554773864c876c8c825c1a6e3be1..05996d06cab8c7dd1be8c75a652becd0bfc530d9 100755 (executable)
@@ -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)
index bc744593b6d85f7bb7f247a466e8b1221404b2f8..5a796c86237b934eaea2449e5a53b2fc6e296e27 100644 (file)
@@ -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.
index efd43a9bf9ef22aa85812811d93d7725fc0a4975..54db18cd315500c94e934364e03ddd821117fdc8 100644 (file)
@@ -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`