4e0d448aef
- Replace deprecated Thread.isAlive() with is_alive() (Python 3.12) - Fix invalid escape sequences in regex strings (SyntaxWarning → SyntaxError) - Replace removed unittest aliases: assertEquals→assertEqual, assertNotEquals→assertNotEqual, assert_→assertTrue, assertRaisesRegexp→assertRaisesRegex (Python 3.12) - Replace portage's removed clear_caches() with flush_cache() - Fix locks.py: reset TLS state on exception in _file_lock_create to prevent stale shared-lock state poisoning subsequent acquisitions - Skip os.chown() when gid is None or caller lacks permission - Fix FastRSS attribute ordering for consistent minidom re-parse behavior - Update test expected XML to match Python 3.8+ minidom attribute order Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>