[ckan-changes] [ckan/ckan] 5a5b7e: unicode() --> six.text_type() for Python 3

GitHub noreply at github.com
Tue Jul 10 12:10:14 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 5a5b7e147d200ad7d7b80eeaef009c5a669ab7f5
      https://github.com/ckan/ckan/commit/5a5b7e147d200ad7d7b80eeaef009c5a669ab7f5
  Author: cclauss <cclauss at bluewin.ch>
  Date:   2018-07-10 (Tue, 10 Jul 2018)

  Changed paths:
    M ckan/views/dataset.py

  Log Message:
  -----------
  unicode() --> six.text_type() for Python 3


flake8 testing of https://github.com/ckan/ckan on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ckan/views/dataset.py:531:27: F821 undefined name 'unicode'
          exc_str = unicode(repr(e.args))
                    ^
./ckan/views/dataset.py:533:27: F821 undefined name 'unicode'
          exc_str = unicode(str(e))
                    ^
./ckan/views/dataset.py:663:27: F821 undefined name 'unicode'
          exc_str = unicode(repr(e.args))
                    ^
./ckan/views/dataset.py:665:27: F821 undefined name 'unicode'
          exc_str = unicode(str(e))
                    ^
./ckan/views/resource.py:575:20: F821 undefined name 'bgase'
      return bgase.abort(
             ^
5     F821 undefined name 'unicode'
5
```


  Commit: ac1bbc1e681c6b9cda41bbe2d878d0f81c302e4a
      https://github.com/ckan/ckan/commit/ac1bbc1e681c6b9cda41bbe2d878d0f81c302e4a
  Author: Adrià Mercader <amercadero at gmail.com>
  Date:   2018-07-10 (Tue, 10 Jul 2018)

  Changed paths:
    M ckan/views/dataset.py

  Log Message:
  -----------
  Merge pull request #4324 from cclauss/patch-4

unicode() --> six.text_type() for Python 3


Compare: https://github.com/ckan/ckan/compare/e276c56b999c...ac1bbc1e681c
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the ckan-changes mailing list