Skip to content

Commit ad3db41

Browse files
committed
Standard imports 'time, webbrowser' should be placed before 'from pkg_resources import resource_string' (wrong-import-order). Surround top-level function and class definitions with two blank lines.
1 parent fe1dcd7 commit ad3db41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plotly/offline/offline.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
from __future__ import absolute_import
77

88
import os
9+
import time
910
import uuid
1011
import warnings
11-
from pkg_resources import resource_string
12-
import time
1312
import webbrowser
1413

14+
from pkg_resources import resource_string
1515
from requests.compat import json as _json
1616

1717
import plotly
@@ -41,6 +41,7 @@ def get_plotlyjs():
4141
plotlyjs = resource_string('plotly', path).decode('utf-8')
4242
return plotlyjs
4343

44+
4445
def get_image_download_script(caller):
4546
"""
4647
This function will return a script that will download an image of a Plotly

0 commit comments

Comments
 (0)