Skip to content

Commit a75a440

Browse files
committed
Fix the import style
1 parent b68f7dd commit a75a440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/src/shift_origin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
shift_origin - Shift plot origin in x and/or y directions.
33
"""
44

5-
from contextlib import contextmanager
5+
import contextlib
66

77
from pygmt.clib import Session
88
from pygmt.helpers import build_arg_list
@@ -106,7 +106,7 @@ def shift_origin(
106106
_xshift = lib.get_common("X") # False or xshift in inches
107107
_yshift = lib.get_common("Y") # False or yshift in inches
108108

109-
@contextmanager
109+
@contextlib.contextmanager
110110
def _shift_origin_context():
111111
"""
112112
An internal context manager to shift the plot origin temporarily.

0 commit comments

Comments
 (0)