SHARE
TWEET

Untitled

a guest Sep 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import yaml
  2. from box import Box
  3.  
  4. def open_yaml(filename):
  5.   with open(filename, 'r', encoding='utf8') as f:
  6.     return yaml.safe_load(f)
  7.  
  8.  
  9. def get_text(lang):
  10.   filename = lang.lower() + '.yml'  
  11. import yaml
  12.  
  13. def open_yaml(filename):
  14.   with open(filename, 'r', encoding='utf8') as f:
  15.     return yaml.safe_load(f)
  16.  
  17. def get_text(lang):
  18.   filename = lang.lower() + '.yml'
  19.   return open_yaml(filename)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top