module pycode.open_script_file
¶
Short summary¶
module pyquickhelper.pycode.open_script_file
A function to read a script and reading the encoding on the first line.
Functions¶
function |
truncated documentation |
---|---|
Guesses the encoding from |
|
Open a filename but read the encoding from the first line. |
Documentation¶
A function to read a script and reading the encoding on the first line.
- pyquickhelper.pycode.open_script_file.detect_encoding(filename)[source]¶
Guesses the encoding from
# -*- coding: ...
.- Parameters:
filename – filename
- Returns:
encoding or None