Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b33307c

Browse files
committed
pylinting 1
1 parent 33ea591 commit b33307c

1 file changed

Lines changed: 3 additions & 23 deletions

File tree

nbconvert.py

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,11 @@
1212
#-----------------------------------------------------------------------------
1313
from __future__ import print_function
1414

15-
# Stdlib
16-
import codecs
17-
import io
18-
import logging
19-
import os
20-
import pprint
21-
import re
22-
import subprocess
23-
import sys
24-
import json
25-
import copy
26-
from types import FunctionType
27-
from shutil import rmtree
28-
from markdown import markdown
2915

3016
# From IPython
3117
from IPython.external import argparse
32-
from IPython.nbformat import current as nbformat
33-
from IPython.utils.text import indent
34-
from IPython.nbformat.v3.nbjson import BytesEncoder
35-
from IPython.utils import path, py3compat
3618

3719
# local
38-
from lexers import IPythonLexer
39-
4020
from converters.html import ConverterHTML
4121
from converters.markdown import ConverterMarkdown
4222
from converters.bloggerhtml import ConverterBloggerHTML
@@ -60,13 +40,13 @@ def main(infile, format='rst'):
6040
converter.render()
6141
elif format == 'html':
6242
converter = ConverterHTML(infile)
63-
htmlfname = converter.render()
43+
converter.render()
6444
elif format == 'blogger-html':
6545
converter = ConverterBloggerHTML(infile)
66-
htmlfname = converter.render()
46+
converter.render()
6747
elif format == 'latex':
6848
converter = ConverterLaTeX(infile)
69-
latexfname = converter.render()
49+
converter.render()
7050
elif format == 'py':
7151
converter = ConverterPy(infile)
7252
converter.render()

0 commit comments

Comments
 (0)