Skip to content

Commit

Permalink
remove some unused imports (#260)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
fchapoton authored and perlpunk committed Dec 13, 2019
1 parent 25a00c3 commit d10b8f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/yaml/representer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
'RepresenterError']

from error import *

from nodes import *

import datetime

import sys, copy_reg, types
import copy_reg, types

class RepresenterError(YAMLError):
pass
Expand Down
2 changes: 1 addition & 1 deletion lib3/yaml/representer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .error import *
from .nodes import *

import datetime, sys, copyreg, types, base64, collections
import datetime, copyreg, types, base64, collections

class RepresenterError(YAMLError):
pass
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
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
Expand Down

0 comments on commit d10b8f2

Please sign in to comment.