Skip to content
Permalink
Browse files

flake8

  • Loading branch information
da2x committed Aug 28, 2015
1 parent 3af775b commit 409ec830276ecb06a78ec7ff723fd0d9f7c377be
Showing with 2 additions and 0 deletions.
  1. +2 −0 nikola/utils.py
@@ -1698,6 +1698,7 @@ def husl_similar_from_base(string, base_color):

return husl_similar_from_base(string, base_color)


def color_hsl_adjust_hex(hexstr, adjust_h=None, adjust_s=None, adjust_l=None):
"""Adjust a hex color using HSL arguments, adjustments in percentages 1.0 to -1.0. Returns a hex color."""
h, s, l = husl.hex_to_husl(hexstr)
@@ -1713,6 +1714,7 @@ def color_hsl_adjust_hex(hexstr, adjust_h=None, adjust_s=None, adjust_l=None):

return husl.husl_to_hex(h, s, l)


# Stolen from textwrap in Python 3.4.3.
def indent(text, prefix, predicate=None):
"""Add 'prefix' to the beginning of selected lines in 'text'.

0 comments on commit 409ec83

Please sign in to comment.