Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cachefunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def clear():


def lfu_cache(maxsize=100):
'''Least-frequenty-used cache decorator.
'''Least-frequently-used cache decorator.

Arguments to the cached function must be hashable.
Cache performance statistics stored in f.hits and f.misses.
Expand Down
8 changes: 4 additions & 4 deletions gprof2dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def call_ratios(self, event):
call.ratio = ratio(call[event], total)

def integrate(self, outevent, inevent):
"""Propagate function time ratio allong the function calls.
"""Propagate function time ratio along the function calls.

Must be called after finding the cycles.

Expand Down Expand Up @@ -1678,7 +1678,7 @@ def parse(self):


class XPerfParser(Parser):
"""Parser for CSVs generted by XPerf, from Microsoft Windows Performance Tools.
"""Parser for CSVs generated by XPerf, from Microsoft Windows Performance Tools.
"""

def __init__(self, stream):
Expand Down Expand Up @@ -2229,13 +2229,13 @@ def _hue_to_rgb(self, m1, m2, h):

TEMPERATURE_COLORMAP = Theme(
mincolor=(2.0 / 3.0, 0.80, 0.25), # dark blue
maxcolor=(0.0, 1.0, 0.5), # satured red
maxcolor=(0.0, 1.0, 0.5), # saturated red
gamma=1.0
)

PINK_COLORMAP = Theme(
mincolor=(0.0, 1.0, 0.90), # pink
maxcolor=(0.0, 1.0, 0.5), # satured red
maxcolor=(0.0, 1.0, 0.5), # saturated red
)

GRAY_COLORMAP = Theme(
Expand Down
2 changes: 1 addition & 1 deletion nbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def write_string(string, buf):


class TAG_Compound(TAG_Value, collections.MutableMapping):
"""A heterogenous list of named tags. Names must be unique within
"""A heterogeneous list of named tags. Names must be unique within
the TAG_Compound. Add tags to the compound using the subscript
operator []. This will automatically name the tags."""

Expand Down