File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import ast
2
- import os
3
2
import codecs
4
3
4
+ from os .path import join , dirname
5
5
from setuptools import setup , find_packages
6
6
7
7
22
22
'Topic :: Text Processing :: Markup :: HTML'
23
23
]
24
24
25
- current_dir = os . path . dirname (__file__ )
26
- with codecs .open (os . path . join (current_dir , 'README.rst' ), 'r' , 'utf8' ) as readme_file :
27
- with codecs .open (os . path . join (current_dir , 'CHANGES.rst' ), 'r' , 'utf8' ) as changes_file :
25
+ here = dirname (__file__ )
26
+ with codecs .open (join (here , 'README.rst' ), 'r' , 'utf8' ) as readme_file :
27
+ with codecs .open (join (here , 'CHANGES.rst' ), 'r' , 'utf8' ) as changes_file :
28
28
long_description = readme_file .read () + '\n ' + changes_file .read ()
29
29
30
30
version = None
31
- with open (os . path . join ("html5lib" , "__init__.py" ), "rb" ) as init_file :
31
+ with open (join ("html5lib" , "__init__.py" ), "rb" ) as init_file :
32
32
t = ast .parse (init_file .read (), filename = "__init__.py" , mode = "exec" )
33
33
assert isinstance (t , ast .Module )
34
34
assignments = filter (lambda x : isinstance (x , ast .Assign ), t .body )
You can’t perform that action at this time.
0 commit comments