Skip to content

Commit da5a6a0

Browse files
committed
refresh d/p/0001-import-unvendorized-decorator.patch
1 parent d77b5f7 commit da5a6a0

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

debian/patches/0001-import-unvendorized-decorator.patch

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ Subject: Import unvendorized decorator.py
44
Forwarded: no
55

66
---
7-
--- a/prometheus_client/context_managers.py
8-
+++ b/prometheus_client/context_managers.py
9-
@@ -2,7 +2,7 @@
7+
Index: build/prometheus_client/context_managers.py
8+
===================================================================
9+
--- build.orig/prometheus_client/context_managers.py
10+
+++ build/prometheus_client/context_managers.py
11+
@@ -2,7 +2,7 @@ from __future__ import unicode_literals
1012

1113
from timeit import default_timer
1214

@@ -15,3 +17,16 @@ Forwarded: no
1517

1618

1719
class ExceptionCounter(object):
20+
Index: build/tests/test_core.py
21+
===================================================================
22+
--- build.orig/tests/test_core.py
23+
+++ build/tests/test_core.py
24+
@@ -11,7 +11,7 @@ from prometheus_client.core import (
25+
HistogramMetricFamily, Info, InfoMetricFamily, Metric, Sample,
26+
StateSetMetricFamily, Summary, SummaryMetricFamily, UntypedMetricFamily,
27+
)
28+
-from prometheus_client.decorator import getargspec
29+
+from inspect import getargspec
30+
31+
try:
32+
import unittest2 as unittest

0 commit comments

Comments
 (0)