File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ def make_archive(self):
395395 target = self .tmpdir / 'source.pyz'
396396 zipapp .create_archive (source , target )
397397 return target
398-
398+
399399 def _make_tree (self , root : pathlib .Path , files : list [str ]) -> None :
400400 for rel in files :
401401 p = root / rel
@@ -474,7 +474,7 @@ def test_cmdline_include_then_exclude(self):
474474 args = [
475475 str (source ),
476476 '--include' , '*.py' ,
477- '--include' , 'foo' ,
477+ '--include' , 'foo' ,
478478 '--exclude' , '**/*.pyc' ]
479479 zipapp .main (args )
480480
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def get_interpreter(archive):
178178 with _maybe_open (archive , 'rb' ) as f :
179179 if f .read (2 ) == b'#!' :
180180 return f .readline ().strip ().decode (shebang_encoding )
181-
181+
182182def _normalize_patterns (values : Iterable [str ] | None ) -> list [str ]:
183183 """
184184 Split comma-separated items, strip whitespace, drop empties.
@@ -187,7 +187,7 @@ def _normalize_patterns(values: Iterable[str] | None) -> list[str]:
187187 """
188188 if not values :
189189 return []
190-
190+
191191 def has_glob (s : str ) -> bool :
192192 return any (ch in s for ch in "*?[]" )
193193
@@ -289,7 +289,7 @@ def main(args=None):
289289 raise SystemExit ("In-place editing of archives is not supported" )
290290 if args .main :
291291 raise SystemExit ("Cannot change the main function when copying" )
292-
292+
293293 # build a filter from include and exclude flags
294294 filter_fn = None
295295 src_path = pathlib .Path (args .source )
You can’t perform that action at this time.
0 commit comments