summaryrefslogtreecommitdiff
path: root/textproc/py-pytidylib/files/patch-tidylib_tidy.py
blob: 3c455de6463356980a4f5739e49a8f2fd919dbab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- tidylib/tidy.py.orig	2016-11-16 01:49:58 UTC
+++ tidylib/tidy.py
@@ -29,8 +29,7 @@ from .sink import create_sink, destroy_s
 __all__ = ['Tidy', 'PersistentTidy']
 
 # Default search order for library names if nothing is passed in
-LIB_NAMES = ['libtidy', 'libtidy.so', 'libtidy-0.99.so.0', 'cygtidy-0-99-0',
-             'tidylib', 'libtidy.dylib', 'tidy']
+LIB_NAMES = ['libtidy-0.99.so.0']
 
 # Error code from library
 ENOMEM = -12
@@ -84,7 +83,7 @@ class Tidy(object):
     def __init__(self, lib_names=None):
         self._tidy = None
         if lib_names is None:
-            lib_names = ctypes.util.find_library('tidy') or LIB_NAMES
+            lib_names = LIB_NAMES
         if isinstance(lib_names, str):
             lib_names = [lib_names]
         for name in lib_names: