def __eq__(self, other):
            """
            Overriding C{attrs} to ensure the os level samefile
            check is done if the name attributes do not match.
            """
            if isinstance(other, self.__class__):
                res = self.name == other.name
            else:
                return False
            if not res and self.name and other.name:
                try:
                    return os.path.samefile(self.name, other.name)
                except OSError:
                    pass
                except (TypeError, ValueError) as e:
                    # On Linux, abstract namespace UNIX sockets start with a
                    # \0, which os.path doesn't like.
                    if not _PY3 and not platform.isLinux():
                        raise e
            return res

            Overriding C{attrs} to ensure the os level samefile
            check is done if the name attributes do not match.
            
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/address.py