This website works better with JavaScript.
首頁
探索
lain.church
說明
註冊
登入
whut
/
confthing
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
add __contains__
master
whut
1 年之前
父節點
af3d569ee9
當前提交
8e1237f90c
共有
1 個文件被更改
,包括
6 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
src/confthing/__init__.py
+ 6
- 0
src/confthing/__init__.py
查看文件
@@ -68,3 +68,9 @@ class Config:
def __setitem__(self, path, value):
self.set(path, value, self.clobber_subscript)
def __contains__(self, path):
try:
self.get(path, strict=True)
return True
except:
return False
Write
Preview
Loading…
取消
儲存