Skip to content

Commit

Permalink
general: Remove need for OrderedDict
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Aug 9, 2017
1 parent c619607 commit b142ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pywal/colors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Generate a colorscheme using imagemagick.
"""
import collections
import os
import re
import shutil
Expand Down Expand Up @@ -69,7 +68,7 @@ def sort_colors(img, colors):
colors = {}
colors["wallpaper"] = img
colors["special"] = {}
colors["colors"] = collections.OrderedDict()
colors["colors"] = {}

colors["special"]["background"] = raw_colors[0]
colors["special"]["foreground"] = raw_colors[15]
Expand Down
4 changes: 2 additions & 2 deletions pywal/sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def set_iterm_tab_color(color):
def create_sequences(colors, vte):
"""Create the escape sequences."""
# Colors 0-15.
sequences = [set_color(num, col) for num, col in
enumerate(colors["colors"].values())]
sequences = [set_color(index, colors["colors"]["color%s" % index])
for index in range(16)]

# Set a blank color that isn't affected by bold highlighting.
# Used in wal.vim's airline theme.
Expand Down

0 comments on commit b142ea0

Please sign in to comment.