mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-19 02:34:20 -05:00
Add param documentation for VPrintable.
This commit is contained in:
@@ -569,6 +569,12 @@ class VPrintable(VLength):
|
||||
self.set_error(errors.BAD_STRING)
|
||||
return None
|
||||
|
||||
def param_docs(self):
|
||||
return {
|
||||
self.param: "a string up to %d characters long,"
|
||||
" consisting of printable characters."
|
||||
% self.max_length,
|
||||
}
|
||||
|
||||
class VTitle(VLength):
|
||||
def __init__(self, param, max_length = 300, **kw):
|
||||
|
||||
Reference in New Issue
Block a user