cd263663b3332ac10da6721dee8f52804639f19b,src/python/pants/option/arg_splitter.py,ArgSplitter,split_args,#ArgSplitter#Any#,37
Before Change
self._unconsumed_args.pop()
target = self._consume_target()
while target:
targets.append(target)
target = self._consume_target()
// We parse the word "help" as a scope, but it"s not a real one, so ignore it.
scope_to_flags.pop("help", None)
return scope_to_flags, targets
def _consume_scope(self):
After Change
while self._unconsumed_args:
arg = self._unconsumed_args.pop()
if arg.startswith(b"-" ):
// During migration we allow flags here, and assume they are in global scope.
// TODO(benjy): Should we allow this even after migration?
scope_to_flags[GLOBAL_SCOPE].append(arg)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: cd263663b3332ac10da6721dee8f52804639f19b
Time: 2014-10-01
Author: benjyw@gmail.com
File Name: src/python/pants/option/arg_splitter.py
Class Name: ArgSplitter
Method Name: split_args
Project Name: RaRe-Technologies/gensim
Commit Name: 4d8333ab7e2345877df639efe53bab01e932d302
Time: 2017-03-02
Author: jayantjain1992@gmail.com
File Name: gensim/models/wrappers/fasttext.py
Class Name: FastText
Method Name: load_dict
Project Name: MTG/freesound
Commit Name: 8bba0fc202e205f30a431e0bd563ea7563224f0e
Time: 2018-08-06
Author: phil.tgun@gmail.com
File Name: sounds/models.py
Class Name: Sound
Method Name: compute_crc