parameters: (self)
return_statement: return lat_long_data
docstring: Read zones.tab for latitude and longitude data.
docstring_summary: Read zones.tab for latitude and longitude data.
docstring_tokens: Read zones . tab for latitude and longitude data .
function: def read_zones_tab(self):
          """Read zones.tab for latitude and longitude data."""
          lat_long_data = {}
          with open(os.path.join(self.zoneinfo_path, "zones.tab"), "r") as tab:
              for line in tab:
                  if len(line) < 19:
                      sys.stderr.write("Line in zones.tab not long enough: %s\n" % line.strip())
                      continue
  
                  [latitude, longitude, name] = line.rstrip().split(" ", 2)
                  lat_long_data[name] = (latitude, longitude)
  
          return lat_long_data
function_tokens: def read_zones_tab ( self ) : lat_long_data = { } with open ( os . path . join ( self . zoneinfo_path , "zones.tab" ) , "r" ) as tab : for line in tab : if len ( line ) < 19 : sys . stderr . write ( "Line in zones.tab not long enough: %s\n" % line . strip ( ) ) continue [ latitude , longitude , name ] = line . rstrip ( ) . split ( " " , 2 ) lat_long_data [ name ] = ( latitude , longitude ) return lat_long_data