comparison contrib/python-zstandard/setup_zstd.py @ 44147:5e84a96d865b

python-zstandard: blacken at 80 characters I made this change upstream and it will make it into the next release of python-zstandard. I figured I'd send it Mercurial's way because it will allow us to drop this directory from the black exclusion list. # skip-blame blackening Differential Revision: https://phab.mercurial-scm.org/D7937
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 22 Jan 2020 22:23:04 -0800
parents de7838053207
children 9d1c56a79bb8
comparison
equal deleted inserted replaced
44146:45ec64d93b3a 44147:5e84a96d865b
136 136
137 sources = set([os.path.join(actual_root, p) for p in ext_sources]) 137 sources = set([os.path.join(actual_root, p) for p in ext_sources])
138 if not system_zstd: 138 if not system_zstd:
139 sources.update([os.path.join(actual_root, p) for p in zstd_sources]) 139 sources.update([os.path.join(actual_root, p) for p in zstd_sources])
140 if support_legacy: 140 if support_legacy:
141 sources.update([os.path.join(actual_root, p) for p in zstd_sources_legacy]) 141 sources.update(
142 [os.path.join(actual_root, p) for p in zstd_sources_legacy]
143 )
142 sources = list(sources) 144 sources = list(sources)
143 145
144 include_dirs = set([os.path.join(actual_root, d) for d in ext_includes]) 146 include_dirs = set([os.path.join(actual_root, d) for d in ext_includes])
145 if not system_zstd: 147 if not system_zstd:
146 include_dirs.update([os.path.join(actual_root, d) for d in zstd_includes]) 148 include_dirs.update(
149 [os.path.join(actual_root, d) for d in zstd_includes]
150 )
147 if support_legacy: 151 if support_legacy:
148 include_dirs.update( 152 include_dirs.update(
149 [os.path.join(actual_root, d) for d in zstd_includes_legacy] 153 [os.path.join(actual_root, d) for d in zstd_includes_legacy]
150 ) 154 )
151 include_dirs = list(include_dirs) 155 include_dirs = list(include_dirs)