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

Skip to content

Commit 61d0227

Browse files
committed
pylinting 2
1 parent b33307c commit 61d0227

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

converters/base.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import print_function
1+
from __future__ import print_function, absolute_import
22
from converters.utils import remove_fake_files_url
33

44
# Stdlib
@@ -7,23 +7,12 @@
77
import logging
88
import os
99
import pprint
10-
import re
11-
import subprocess
12-
import sys
13-
import json
14-
import copy
1510
from types import FunctionType
16-
from shutil import rmtree
1711

1812
# From IPython
19-
from IPython.external import argparse
2013
from IPython.nbformat import current as nbformat
21-
from IPython.utils.text import indent
22-
from IPython.nbformat.v3.nbjson import BytesEncoder
23-
from IPython.utils import path, py3compat
2414

2515
# local
26-
from lexers import IPythonLexer
2716

2817
#-----------------------------------------------------------------------------
2918
# Class declarations
@@ -54,7 +43,7 @@ def __new__(meta, classname, bases, classDict):
5443
# look through bases for matching function by name
5544
for baseclass in bases:
5645
if hasattr(baseclass, attributeName):
57-
basefn = getattr(baseclass,attributeName)
46+
basefn = getattr(baseclass, attributeName)
5847
if basefn.__doc__:
5948
attribute.__doc__ = basefn.__doc__
6049
break

converters/latex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def in_env(self, environment, lines):
5656
out.append(ur'\end{%s}' % environment)
5757
return out
5858

59-
def convert(self):
59+
def convert(self, *kwargs):
6060
# The main body is done by the logic in the parent class, and that's
6161
# all we need if preamble support has been turned off.
62-
body = super(ConverterLaTeX, self).convert()
62+
body = super(ConverterLaTeX, self).convert(*kwargs)
6363
if not self.with_preamble:
6464
return body
6565
# But if preamble is on, then we need to construct a proper, standalone

0 commit comments

Comments
 (0)