File: mymodule1.py

package info (click to toggle)
pyinstaller 6.18.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,820 kB
  • sloc: python: 41,828; ansic: 12,123; makefile: 171; sh: 131; xml: 19
file content (25 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# NOTE: if you edit this file, be careful not to change the encoding!
#
# The comment line below intentionally contains a non-ASCII character in local encoding and fails to declare the
# encoding using PEP263 encoding header.
#
# problematic character:  (e-acute in ISO-8859-15)
#
# While python is able to load and run the module, retrieving its source code via loader's `get_source`
# method is expected to raise an error:
#
# ```
# import mymodule1
# mymodule1.__loader__.get_source('mymodule1')
# ```
#
# ```
# Traceback (most recent call last):
#   File "<stdin>", line 1, in <module>
#   File "<frozen importlib._bootstrap_external>", line 997, in get_source
#   File "<frozen importlib._bootstrap_external>", line 770, in decode_source
# UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 298: invalid continuation byte
# ```

def hello():
    return "hello"