1. 18 Jan, 2019 1 commit
    • Jérome Perrin's avatar
      administration: fix BT's "Check Python Code" with coding flag · 231b341b
      Jérome Perrin authored
      According to pep-0263, python scripts can define encoding magic on
      first or second line.
      If we use for example such a script:
      
      ```python
        # coding: utf-8
        return "héhé"
      ```
      
      then using .read() was wrong, because it return the script with headers,
      ie:
      
      ```python
        ## Script (Python) "test_coding"
        ##bind container=container
        ##bind context=context
        ##bind namespace=
        ##bind script=script
        ##bind subpath=traverse_subpath
        ##parameters=
        ##title=
        ##
        # coding: utf-8
        return "héhé"
      ```
      
      so the coding magic is no longer in first line and pylint complains
      with error like:
      
      Cannot decode using encoding "ascii", unexpected byte at position 11 (invalid-encoded-data)]
      231b341b
  2. 10 Jan, 2019 2 commits
  3. 03 Dec, 2018 1 commit
  4. 30 Nov, 2018 14 commits
  5. 29 Nov, 2018 17 commits
  6. 28 Sep, 2018 3 commits
  7. 25 Sep, 2018 1 commit
  8. 22 Aug, 2018 1 commit