コード例 #1
0
 def assertLoaded(self, contents, expected):
   self.assertEqual(expected, Properties.load(contents))
コード例 #2
0
 def assertLoaded(self, contents, expected):
     self.assertEqual(expected, Properties.load(contents))
コード例 #3
0
 def load(path):
   """Loads a pushdb maintained in a properties file at the given path."""
   with open(path, 'r') as props:
     properties = Properties.load(props)
     return PushDb(properties)
コード例 #4
0
ファイル: jar_publish.py プロジェクト: caveness/pants
 def load(path):
   """Loads a pushdb maintained in a properties file at the given path."""
   with open(path, 'r') as props:
     properties = Properties.load(props)
     return PushDb(properties)