mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Add noop str config parser for documentation.
This allows str config params to be specified in plugins so their param delcarations can be comprehensive.
This commit is contained in:
@@ -27,6 +27,10 @@ import re
|
||||
class ConfigValue(object):
|
||||
_bool_map = dict(true=True, false=False)
|
||||
|
||||
@staticmethod
|
||||
def str(v, key=None, data=None):
|
||||
return str(v)
|
||||
|
||||
@staticmethod
|
||||
def int(v, key=None, data=None):
|
||||
return int(v)
|
||||
|
||||
Reference in New Issue
Block a user