Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 673
    • Issues 673
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Merge requests
  • !766

Fix sethostname() failure when passed bytes

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Michał Górny requested to merge topic/default/sethostname-bytes into branch/default Oct 04, 2020
  • Overview 7
  • Commits 1
  • Pipelines 1
  • Changes 1

My implementation of sethostname() was broken and failed when passed bytes on Python 3. Update the implementation to match CPython -- that is, use bytes if provided, or fsencode() when str is provided.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: topic/default/sethostname-bytes