Пример #1
0
 def _run_filter(filename, include_patterns=None, exclude_patterns=None):
     return UnpackJars._file_filter(
         filename, UnpackJars.compile_patterns(include_patterns or []),
         UnpackJars.compile_patterns(exclude_patterns or []))
Пример #2
0
 def _run_filter(filename, include_patterns=None, exclude_patterns=None):
   return UnpackJars._file_filter(
     filename,
     UnpackJars.compile_patterns(include_patterns or []),
     UnpackJars.compile_patterns(exclude_patterns or []))
Пример #3
0
 def test_invalid_pattern(self):
     with self.assertRaises(UnpackJars.InvalidPatternError):
         UnpackJars.compile_patterns([45])
Пример #4
0
 def test_invalid_pattern(self):
   with self.assertRaises(UnpackJars.InvalidPatternError):
     UnpackJars.compile_patterns([45])