You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The intent of the referenced line of code is to strip the extension .py (and only the extension .py) from the end of the filename to yield the module name.
However the actual effect of the referenced line of code is to strip any occurrence of '.y', 'p' or '.' from the end of the file name irrespective of whether the characters occur strictly in the context of the sequence '.py'
To reproduce, attempt to create a migration whose name ends with the letter 'y'.
The problem is that the python strip() function does not have the intended semantics of stripping a suffix, only individual matching characters.
The text was updated successfully, but these errors were encountered:
The intent of the referenced line of code is to strip the extension .py (and only the extension .py) from the end of the filename to yield the module name.
raw-sql-migrate/raw_sql_migrate/helpers.py
Line 73 in 3ff3e80
However the actual effect of the referenced line of code is to strip any occurrence of '.y', 'p' or '.' from the end of the file name irrespective of whether the characters occur strictly in the context of the sequence '.py'
To reproduce, attempt to create a migration whose name ends with the letter 'y'.
The problem is that the python strip() function does not have the intended semantics of stripping a suffix, only individual matching characters.
The text was updated successfully, but these errors were encountered: