Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • pygolang pygolang
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • pygolangpygolang
  • Repository

Switch branch/tag
  • pygolang
  • trun
Find file BlameHistoryPermalink
  • Kirill Smelkov's avatar
    *: Suppress DeprecationWarning on `import imp` · ec2e882b
    Kirill Smelkov authored Nov 07, 2019
    As of 20191107 imp is present in Python 3.8 source tree and is _used_
    there - see e.g.
    
        https://github.com/python/cpython/blob/v3.8.0-66-g7c20888e713/Lib/pkgutil.py#L188-L192
    
    And they say imp will be there until at least Python 4 - see e.g.
    
        https://github.com/python/cpython/commit/e4f41deccf94
    
    This fixes test_defer_excchain_dump failure under python3-dbg, where
    
    E           Failed: not equal:
    E           Differences (unified diff with -expected +actual):
    E               @@ -1,4 +1,6 @@
    E               +PYGOLANG/golang/_gopath.py:37: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    E               +  import imp
    
    was added into traceback printed on stderr.
    
    Fixes: bb9a94c3 (golang: Teach defer to chain exceptions (PEP 3134) even on Python2)
    ec2e882b

Replace trun

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7