コード例 #1
0
ファイル: makehosts.py プロジェクト: 100Mbps/huhamhire-hosts
 def write_head(self):
     """
     Write the head part into the new hosts file.
     """
     for head_str in RetrieveData.get_head():
         self.hosts_file.write("%s%s" % (head_str[0], self.eol))
コード例 #2
0
 def write_head(self):
     """
     Write the head part into the new hosts file.
     """
     for head_str in RetrieveData.get_head():
         self.hosts_file.write("%s%s" % (head_str[0], self.eol))