Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P python-nbxmpp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • gajimgajim
  • python-nbxmpp
  • Merge requests
  • !22

Replace ustr() by str()

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged André requested to merge andre/python-nbxmpp:ustr into master Nov 26, 2018
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 3

The str() function calls the method __str__(), so try-except in ustr() can be removed.

utf-8 is the default encoding in Python3, so the last call of str(r, ENCODING) can be written as str(r). Further simplified, we get ustr() is equal to str().

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ustr