mirror of
https://github.com/yaml/pyyaml.git
synced 2025-10-19 11:03:18 +00:00
remove some unused imports (#260)
* remove some unused imports as suggested by lgtm https://lgtm.com/projects/g/yaml/pyyaml/ * add back import * from nodes * remove also sys import * remove mkpath import
This commit is contained in:
parent
e1ffe1afaa
commit
36fdf0c486
3 changed files with 3 additions and 3 deletions
|
@ -3,11 +3,12 @@ __all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer',
|
|||
'RepresenterError']
|
||||
|
||||
from error import *
|
||||
|
||||
from nodes import *
|
||||
|
||||
import datetime
|
||||
|
||||
import sys, copy_reg, types
|
||||
import copy_reg, types
|
||||
|
||||
class RepresenterError(YAMLError):
|
||||
pass
|
||||
|
|
|
@ -5,7 +5,7 @@ __all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer',
|
|||
from .error import *
|
||||
from .nodes import *
|
||||
|
||||
import datetime, sys, copyreg, types, base64, collections
|
||||
import datetime, copyreg, types, base64, collections
|
||||
|
||||
class RepresenterError(YAMLError):
|
||||
pass
|
||||
|
|
1
setup.py
1
setup.py
|
@ -65,7 +65,6 @@ from distutils import log
|
|||
from distutils.core import setup, Command
|
||||
from distutils.core import Distribution as _Distribution
|
||||
from distutils.core import Extension as _Extension
|
||||
from distutils.dir_util import mkpath
|
||||
from distutils.command.build_ext import build_ext as _build_ext
|
||||
from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
|
||||
from distutils.errors import DistutilsError, CompileError, LinkError, DistutilsPlatformError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue