diff -ur v18/ezyaml.c v19/ezyaml.c --- v18/ezyaml.c 2018-09-12 22:20:36.000000000 +0900 +++ v19/ezyaml.c 2018-09-12 22:21:15.000000000 +0900 @@ -580,7 +580,7 @@ if( is_not_same_str(s, obj) ){ return 1; } - if( from_dic == 'l' && ( strstr(s, ": ") || s[ strlen(s)-1 ] == ':' ) ){ + if( from_dic && ( strstr(s, ": ") || s[ strlen(s)-1 ] == ':' ) ){ return 1; } return 0; diff -ur v18/ezyaml.py v19/ezyaml.py --- v18/ezyaml.py 2018-09-12 22:20:36.000000000 +0900 +++ v19/ezyaml.py 2018-09-12 22:21:15.000000000 +0900 @@ -234,7 +234,7 @@ if get_value(s) != obj: return True - if from_dic == 'l' and (': ' in s or s[-1:] == ':'): + if from_dic and (': ' in s or s[-1:] == ':'): return True return False