Skip to content

Commit 7398b5d

Browse files
committed
Fix "warn()"" deprecation warnings
1 parent 65cd89d commit 7398b5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client_cli/src/d1_cli/pids2ore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ args = parser.parse_args()
135135

136136
if args.log not in (10,20,30,40,50):
137137
logging.basicConfig(level=logging.INFO)
138-
logging.warn("Invalid value %s for log level. Using 20 (INFO).", args.log)
138+
logging.warning("Invalid value %s for log level. Using 20 (INFO).", args.log)
139139
else:
140140
logging.basicConfig( level=args.log )
141141

lib_client/src/d1_client/iter/objectlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _loadMore(self, start=0, trys=0, validation=True):
120120
nodeId=self._nodeId
121121
)
122122
except http.client.BadStatusLine as e:
123-
self.log.warn("Server responded with Bad Status Line. Retrying in 5sec")
123+
self.log.warning("Server responded with Bad Status Line. Retrying in 5sec")
124124
self._client.connection.close()
125125
if trys > 3:
126126
raise e

0 commit comments

Comments
 (0)