utils.extract_filename#
Back to Module page
Summary#
Extracts the filename from a string representation of a buffer object
Signature#
def extract_filename(fname)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
String |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Filename if found, or the original string |
Docstring#
Extracts the filename from a string representation of a buffer object
:param fname: String
:return: Filename if found, or the original string