예제 #1
0
 def test_split_quoted(self):
     self.assertEquals(split_quoted('""one"" "two" \'three\' \\four'),
                       ['one', 'two', 'three', 'four'])
예제 #2
0
 def set_executable(self, key, value):
     if isinstance(value, str):
         setattr(self, key, split_quoted(value))
     else:
         setattr(self, key, value)
예제 #3
0
 def set_executable(self, key, value):
     if isinstance(value, basestring):
         setattr(self, key, split_quoted(value))
     else:
         setattr(self, key, value)