Skip to content

Commit b2946f3

Browse files
authored
Merge pull request #892 from krinsman/step7_12
Moved client file to base since it's used by the NBViewer application, not specifically the URL provider. Update copyright statements.
2 parents ff1d5c4 + bce988d commit b2946f3

24 files changed

+26
-27
lines changed

nbviewer/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2013 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.
@@ -36,7 +36,7 @@
3636
from nbconvert.exporters.export import exporter_map
3737

3838
from .providers import default_providers, default_rewrites
39-
from .providers.url.client import NBViewerAsyncHTTPClient as HTTPClientClass
39+
from .client import NBViewerAsyncHTTPClient as HTTPClientClass
4040
from .ratelimit import RateLimiter
4141

4242
from .log import log_request
@@ -248,7 +248,7 @@ def _log_level_default(self):
248248
# Ditto the above: https://github.com/ipython/traitlets/blob/master/traitlets/config/application.py#L197
249249
@default('log_format')
250250
def _log_format_default(self):
251-
"""override default log format to include time and color, plus always display the log level, not just when it's high"""
251+
"""override default log format to include time and color, plus to always display the log level, not just when it's high"""
252252
return "%(color)s[%(levelname)1.1s %(asctime)s.%(msecs).03d %(name)s %(module)s:%(lineno)d]%(end_color)s %(message)s"
253253

254254
# For consistency with JupyterHub logs

nbviewer/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2013 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

nbviewer/providers/url/client.py renamed to nbviewer/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import asyncio
1515

16-
from tornado.httpclient import HTTPRequest, HTTPError
16+
from tornado.httpclient import HTTPRequest
1717
from tornado.curl_httpclient import CurlAsyncHTTPClient
1818

1919
from nbviewer.utils import time_block

nbviewer/formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2015 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

nbviewer/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2013 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

nbviewer/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2014 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

nbviewer/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2013 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

nbviewer/providers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2013 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

nbviewer/providers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2013 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

nbviewer/providers/dropbox/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
# Copyright (C) 2013 The IPython Development Team
2+
# Copyright (C) Jupyter Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
55
# the file COPYING, distributed as part of this software.

0 commit comments

Comments
 (0)