code: def detect_platform(self):
          
          # For Mac and Linux 32bit we do not need the bits appended
          if mozinfo.os == 'mac' or \
                  (mozinfo.os == 'linux' and mozinfo.bits == 32):
              return mozinfo.os
          else:
              return "%s%d" % (mozinfo.os, mozinfo.bits)
docs: Detect the current platform.