Skip to content

Commit f417627

Browse files
committed
2.4.2; +init FutureWarning to stacklevel=2
1 parent 4a67e79 commit f417627

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproj/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4848
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
4949
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """
50-
__version__ = "2.4.2.rc0"
50+
__version__ = "2.4.2"
5151
__all__ = [
5252
"Proj",
5353
"Geod",

pyproj/crs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def _prepare_from_string(in_crs_string):
120120
"'+init=<authority>:<code>' syntax is deprecated."
121121
" '<authority>:<code>' is the preferred initialization method.",
122122
FutureWarning,
123+
stacklevel=2,
123124
)
124125
return in_crs_string
125126

0 commit comments

Comments
 (0)