summaryrefslogtreecommitdiff
path: root/docs/pycon2010/fileutil.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2016-12-09 16:54:10 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2016-12-09 16:54:10 -0500
commit06331d3ab75feb807dc48d824cbd54898a6b6cdd (patch)
tree24034e3f0ff7cd94239d575fe046acc550e7a49f /docs/pycon2010/fileutil.py
parentb9658cff197beff5a00632a68ecf85838879835e (diff)
downloadcmd2-git-06331d3ab75feb807dc48d824cbd54898a6b6cdd.tar.gz
First stage of refactoring to support full simultaneous Python 2 and 3 compatibility via use of the six module.
Diffstat (limited to 'docs/pycon2010/fileutil.py')
-rw-r--r--docs/pycon2010/fileutil.py12
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()