old_contents: #
  # ------------------------------------------------------------
  # Copyright (c) SILAB , Physics Institute of Bonn University
  # ------------------------------------------------------------
  #
  # SVN revision information:
  #  $Rev::                       $:
  #  $Author::                    $:
  #  $Date::                      $:
  #
  
  from HL.HardwareLayer import HardwareLayer
  
  
  class gpio(HardwareLayer):
      
      def __init__(self, intf, conf):
          HardwareLayer.__init__(self, intf, conf)
  
      def init(self):
          if 'init' in self._conf:
              if 'direction' in self._conf['init']:
                  self.set_direction(0, self._conf['init']['direction'])
          
      def reset(self):
          '''Soft reset the module.'''
          self._intf.write(self._conf['base_addr'], [0])
  
      def set_direction(self, addr, value):
          self._intf.write(self._conf['base_addr'] + 3, value)
  
      def get_direction(self, addr):
          return self._intf.read(self._conf['base_addr'] + 3, 1)
  
      def set_data(self, addr, value):
          self._intf.write(self._conf['base_addr'] + 2, value)
  
      def get_data(self, addr):
          return self._intf.read(self._conf['base_addr'] + 1, 1)
  
new_contents: #
  # ------------------------------------------------------------
  # Copyright (c) SILAB , Physics Institute of Bonn University
  # ------------------------------------------------------------
  #
  # SVN revision information:
  #  $Rev::                       $:
  #  $Author::                    $:
  #  $Date::                      $:
  #
  
  from HL.HardwareLayer import HardwareLayer
  
  
  class gpio(HardwareLayer):
      '''GPIO
      '''
      def __init__(self, intf, conf):
          HardwareLayer.__init__(self, intf, conf)
  
      def init(self):
          if 'init' in self._conf:
              if 'direction' in self._conf['init']:
                  self.set_direction(0, self._conf['init']['direction'])
  
      def reset(self):
          '''Soft reset the module.'''
          self._intf.write(self._conf['base_addr'], [0])
  
      def set_direction(self, addr, value):
          self._intf.write(self._conf['base_addr'] + 3, value)
  
      def get_direction(self, addr):
          return self._intf.read(self._conf['base_addr'] + 3, size=1)
  
      def set_data(self, data):
          self._intf.write(self._conf['base_addr'] + 2, data)
  
      def get_data(self):
          return self._intf.read(self._conf['base_addr'] + 1, size=1)
  
subject: remove unused parameters