import socket
import logger
from groundstation.broadcast_socket import BroadcastSocket

import logger
log = logger.getLogger(__name__)

class BroadcastAnnouncer(BroadcastSocket):
    def __init__(self, port):
        super(BroadcastAnnouncer, self).__init__()
        self._addr = '255.255.255.255', port
        self._name = None
        self.broadcast_payload = "PING None"

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, value):
        self._name = value
        self.broadcast_payload = "PING %s" % (self._name)

    def ping(self):
        log.info("ping payload: %s" % (self.broadcast_payload))
        transmitted = self.socket.sendto(self.broadcast_payload, self._addr)
        if transmitted != len(self.broadcast_payload):
            log.warning("ping wasn't successfully broadcast")

import socket
import logger
from sockets.broadcast_socket import BroadcastSocket

import logger
log = logger.getLogger(__name__)

class BroadcastAnnouncer(BroadcastSocket):
    def __init__(self, port):
        super(BroadcastAnnouncer, self).__init__()
        self._addr = '255.255.255.255', port
        self._name = None
        self.broadcast_payload = "PING None"

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, value):
        self._name = value
        self.broadcast_payload = "PING %s" % (self._name)

    def ping(self):
        log.info("ping payload: %s" % (self.broadcast_payload))
        transmitted = self.socket.sendto(self.broadcast_payload, self._addr)
        if transmitted != len(self.broadcast_payload):
            log.warning("ping wasn't successfully broadcast")

Fix an import path bug masked by remaining .pyc files
Fix an import path bug masked by remaining .pyc files

  import socket
  import logger
- from groundstation.broadcast_socket import BroadcastSocket
+ from sockets.broadcast_socket import BroadcastSocket
  
  import logger
  log = logger.getLogger(__name__)
  
  class BroadcastAnnouncer(BroadcastSocket):
      def __init__(self, port):
          super(BroadcastAnnouncer, self).__init__()
          self._addr = '255.255.255.255', port
          self._name = None
          self.broadcast_payload = "PING None"
  
      @property
      def name(self):
          return self._name
  
      @name.setter
      def name(self, value):
          self._name = value
          self.broadcast_payload = "PING %s" % (self._name)
  
      def ping(self):
          log.info("ping payload: %s" % (self.broadcast_payload))
          transmitted = self.socket.sendto(self.broadcast_payload, self._addr)
          if transmitted != len(self.broadcast_payload):
              log.warning("ping wasn't successfully broadcast")
  
Fix an import path bug masked by remaining .pyc files
## Code Before:
import socket
import logger
from groundstation.broadcast_socket import BroadcastSocket

import logger
log = logger.getLogger(__name__)

class BroadcastAnnouncer(BroadcastSocket):
    def __init__(self, port):
        super(BroadcastAnnouncer, self).__init__()
        self._addr = '255.255.255.255', port
        self._name = None
        self.broadcast_payload = "PING None"

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, value):
        self._name = value
        self.broadcast_payload = "PING %s" % (self._name)

    def ping(self):
        log.info("ping payload: %s" % (self.broadcast_payload))
        transmitted = self.socket.sendto(self.broadcast_payload, self._addr)
        if transmitted != len(self.broadcast_payload):
            log.warning("ping wasn't successfully broadcast")

## Instruction:
Fix an import path bug masked by remaining .pyc files
## Code After:
import socket
import logger
from sockets.broadcast_socket import BroadcastSocket

import logger
log = logger.getLogger(__name__)

class BroadcastAnnouncer(BroadcastSocket):
    def __init__(self, port):
        super(BroadcastAnnouncer, self).__init__()
        self._addr = '255.255.255.255', port
        self._name = None
        self.broadcast_payload = "PING None"

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, value):
        self._name = value
        self.broadcast_payload = "PING %s" % (self._name)

    def ping(self):
        log.info("ping payload: %s" % (self.broadcast_payload))
        transmitted = self.socket.sendto(self.broadcast_payload, self._addr)
        if transmitted != len(self.broadcast_payload):
            log.warning("ping wasn't successfully broadcast")
