File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import sys
8
8
import os
9
- import pprint
10
9
from ConfigParser import ConfigParser
11
10
12
11
# Python 2.3.6+ and setuptools are needed to build eggs, so
@@ -49,14 +48,13 @@ def __init__(self, meta_defines):
49
48
cfg .read ('setup.cfg' )
50
49
_ldap_cfg = dict (cfg .items ('_ldap' ))
51
50
for name , value in _ldap_cfg .items ():
52
- _ldap_cfg [name ] = filter ( None , value .split (' ' ))
51
+ _ldap_cfg [name ] = [ val for val in value .split (' ' ) if val ]
53
52
# split values of extra_files
54
53
if 'extra_files' in _ldap_cfg :
55
54
for i in range (len (_ldap_cfg ['extra_files' ])):
56
55
destdir , origfiles = self .extra_files [i ].split (':' )
57
56
origfileslist = origfiles .split (',' )
58
57
_ldap_cfg ['extra_files' ][i ] = (destdir , origfileslist )
59
- #pprint.pprint(_ldap_cfg)
60
58
for name , val in _ldap_cfg .items ():
61
59
setattr (self , name , val )
62
60
if 'ldap_r' in self .libs or 'oldap_r' in self .libs :
@@ -83,8 +81,6 @@ def __init__(self, meta_defines):
83
81
],
84
82
)
85
83
86
- pprint .pprint (LDAP_CLASS .__dict__ )
87
-
88
84
89
85
#-- Let distutils/setuptools do the rest
90
86
You can’t perform that action at this time.
0 commit comments