diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2017-01-06 12:23:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-06 12:23:48 +0000 |
commit | 46d1028a330ffe4d344b99739d1d4b607654ade5 (patch) | |
tree | a9d266360cc23d383335c69195a2b65cc8cba77f /docs/pycon2010/fileutil.py | |
parent | ef074cc2ffb64b2c5281757820f6904bd368d51e (diff) | |
parent | 01a8ab20a7ce3544da7c3e69dfc5d4cb0ad257ae (diff) | |
download | cmd2-git-46d1028a330ffe4d344b99739d1d4b607654ade5.tar.gz |
Merge pull request #29 from tleonhardt/master
Refactored to create a unified Python 2/3 codebase based on six which doesn't require 2to3
Diffstat (limited to 'docs/pycon2010/fileutil.py')
-rw-r--r-- | docs/pycon2010/fileutil.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/pycon2010/fileutil.py b/docs/pycon2010/fileutil.py deleted file mode 100644 index 5e754b5a..00000000 --- a/docs/pycon2010/fileutil.py +++ /dev/null @@ -1,12 +0,0 @@ -import glob -import os.path - -for fullfilename in glob.glob('/home/cat/proj/cmd2/*.py'): - (dirpath, fname) = os.path.split(fullfilename) - stats = os.stat(fullfilename) - binds['path'] = dirpath - binds['name'] = fname - binds['bytes'] = stats.st_size - cmd("""INSERT INTO cat.files (path, name, bytes) - VALUES (%(path)s, %(name)s, %(bytes)s)""") -quit() |