Skip to content

Commit 770d226

Browse files
committed
___ wip: disable monkey patch
1 parent 826f00b commit 770d226

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/conf.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
import sys
44

55

6-
class _Zbarlight(object):
7-
"""
8-
Fake zbarlight C extension
6+
# class _Zbarlight(object):
7+
# """
8+
# Fake zbarlight C extension
99

10-
Should be updated when C extension change.
11-
"""
10+
# Should be updated when C extension change.
11+
# """
1212

13-
def zbar_code_scanner(self, *args):
14-
pass
13+
# def zbar_code_scanner(self, *args):
14+
# pass
1515

16-
def version(self):
17-
pass
16+
# def version(self):
17+
# pass
1818

19-
@classmethod
20-
def monkey_patch(cls):
21-
"""Monkey path zbarlight C extension on Read The Docs"""
22-
on_read_the_docs = os.environ.get("READTHEDOCS", False)
23-
if on_read_the_docs:
24-
sys.modules["zbarlight._zbarlight"] = cls
19+
# @classmethod
20+
# def monkey_patch(cls):
21+
# """Monkey path zbarlight C extension on Read The Docs"""
22+
# on_read_the_docs = os.environ.get("READTHEDOCS", False)
23+
# if on_read_the_docs:
24+
# sys.modules["zbarlight._zbarlight"] = cls
2525

2626

27-
_Zbarlight.monkey_patch()
27+
# _Zbarlight.monkey_patch()
2828

2929
project = "zbarlight"
3030
copyright = "2014, Polyconseil"

0 commit comments

Comments
 (0)