Commit d3bad4fd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b62d39d0
...@@ -28,6 +28,10 @@ from __future__ import print_function ...@@ -28,6 +28,10 @@ from __future__ import print_function
import re, io, numpy as np import re, io, numpy as np
from collections import OrderedDict from collections import OrderedDict
import gopath
golang = gopath.gimport('lab.nexedi.com/kirr/go123/golang')
method = golang.method
# Benchmark is a collection of benchmark lines. # Benchmark is a collection of benchmark lines.
class Benchmark(list): class Benchmark(list):
...@@ -89,13 +93,6 @@ class Stats(object): ...@@ -89,13 +93,6 @@ class Stats(object):
# ---------------------------------------- # ----------------------------------------
# method decorator allows to define methods separate from class.
def method(cls):
def deco(f):
setattr(cls, f.func_name, f)
return deco
_sp_re = re.compile(r'\s') _sp_re = re.compile(r'\s')
# parse_label tries to parse line as label. # parse_label tries to parse line as label.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment