Skip to content

Commit 36fdf0c

Browse files
fchapotonperlpunk
authored andcommitted
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
1 parent e1ffe1a commit 36fdf0c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/yaml/representer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
'RepresenterError']
44

55
from error import *
6+
67
from nodes import *
78

89
import datetime
910

10-
import sys, copy_reg, types
11+
import copy_reg, types
1112

1213
class RepresenterError(YAMLError):
1314
pass

lib3/yaml/representer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .error import *
66
from .nodes import *
77

8-
import datetime, sys, copyreg, types, base64, collections
8+
import datetime, copyreg, types, base64, collections
99

1010
class RepresenterError(YAMLError):
1111
pass

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
from distutils.core import setup, Command
6666
from distutils.core import Distribution as _Distribution
6767
from distutils.core import Extension as _Extension
68-
from distutils.dir_util import mkpath
6968
from distutils.command.build_ext import build_ext as _build_ext
7069
from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
7170
from distutils.errors import DistutilsError, CompileError, LinkError, DistutilsPlatformError

0 commit comments

Comments
 (0)