Skip to content

Commit

Permalink
noop: minor comment, drop Source meta assert that prevents reloading …
Browse files Browse the repository at this point in the history
…classes
  • Loading branch information
snarfed committed Jan 13, 2017
1 parent 7a11a3d commit 5302309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion granary/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def __new__(meta, name, bases, class_dict):
cls = type.__new__(meta, name, bases, class_dict)
name = getattr(cls, 'NAME', None)
if name:
assert name.lower() not in sources, cls
sources[name.lower()] = cls
return cls

Expand Down
3 changes: 3 additions & 0 deletions granary/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
# * Allowed video formats, max video size, and upload chunk size:
# https://dev.twitter.com/rest/public/uploading-media#keepinmind
#
# Update by running help/configuration.json manually in
# https://apigee.com/embed/console/twitter
#
# TODO: pull these from /help/configuration.json instead.
# https://dev.twitter.com/docs/api/1.1/get/help/configuration
MAX_TWEET_LENGTH = 140
Expand Down

0 comments on commit 5302309

Please sign in to comment.