Skip to content

Commit 37983e2

Browse files
author
stroeder
committed
do not use pprint, avoid filter()
1 parent 9a7c52e commit 37983e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import sys
88
import os
9-
import pprint
109
from ConfigParser import ConfigParser
1110

1211
# Python 2.3.6+ and setuptools are needed to build eggs, so
@@ -49,14 +48,13 @@ def __init__(self, meta_defines):
4948
cfg.read('setup.cfg')
5049
_ldap_cfg = dict(cfg.items('_ldap'))
5150
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 ]
5352
# split values of extra_files
5453
if 'extra_files' in _ldap_cfg:
5554
for i in range(len(_ldap_cfg['extra_files'])):
5655
destdir, origfiles = self.extra_files[i].split(':')
5756
origfileslist = origfiles.split(',')
5857
_ldap_cfg['extra_files'][i] = (destdir, origfileslist)
59-
#pprint.pprint(_ldap_cfg)
6058
for name, val in _ldap_cfg.items():
6159
setattr(self, name, val)
6260
if 'ldap_r' in self.libs or 'oldap_r' in self.libs:
@@ -83,8 +81,6 @@ def __init__(self, meta_defines):
8381
],
8482
)
8583

86-
pprint.pprint(LDAP_CLASS.__dict__)
87-
8884

8985
#-- Let distutils/setuptools do the rest
9086

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy