parameters: (self, pattern)
docstring: Remove paths matching the given pattern from the container. See the
          mozpack.path.match documentation for a description of the handled
          patterns.
docstring_summary: Remove paths matching the given pattern from the container. See the
          mozpack.path.match documentation for a description of the handled
          patterns.
docstring_tokens: Remove paths matching the given pattern from the container . See the mozpack . path . match documentation for a description of the handled patterns .
function: def remove(self, pattern):
          '''
          Remove paths matching the given pattern from the container. See the
          mozpack.path.match documentation for a description of the handled
          patterns.
          '''
          items = self.match(pattern)
          if not items:
              return errors.error("Can't remove %s: %s" % (pattern,
                                  "not matching anything previously added"))
          for i in items:
              del self._files[i]
              self._required_directories.subtract(self._partial_paths(i))
function_tokens: def remove ( self , pattern ) : items = self . match ( pattern ) if not items : return errors . error ( "Can't remove %s: %s" % ( pattern , "not matching anything previously added" ) ) for i in items : del self . _files [ i ] self . _required_directories . subtract ( self . _partial_paths ( i ) )