Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

renaming gpolocator to uscode

  • Loading branch information...
commit 8c4b7bd42f6b6c7af36c868d04b1e25b3655a991 1 parent aa11d27
Eric Mill authored September 26, 2012
2  .gitignore
... ...
@@ -1,3 +1,3 @@
1 1
 /virt
2 2
 /data
3  
-*.pyc
  3
+*.pyc
2  tasks/gitdump-flat.py
@@ -5,7 +5,7 @@
5 5
 import subprocess
6 6
 
7 7
 from logbook import Logger
8  
-from gpolocator import File
  8
+from uscode import File
9 9
 import utils
10 10
 
11 11
 
8  tasks/gitdump.py
@@ -4,11 +4,11 @@
4 4
 from os.path import join
5 5
 import subprocess
6 6
 
7  
-import fson
8  
-from gpolocator.parser import getlines
9  
-from gpolocator.grouper import group
10  
-from gpolocator.structure import GPOLocatorParser
  7
+from uscode.parser import getlines
  8
+from uscode.grouper import group
  9
+from uscode.structure import GPOLocatorParser
11 10
 import utils
  11
+import fson
12 12
 
13 13
 def run(options):
14 14
     argv = options["argv"]
10  tasks/parse.py
... ...
@@ -1,5 +1,13 @@
1 1
 import utils
2 2
 from utils import log
3 3
 
  4
+import uscode
  5
+
4 6
 def run(options):
5  
-  utils.log("hey.")
  7
+  title = options.get('title', None)
  8
+  section = options.get('section', None)
  9
+
  10
+  if not title or not section:
  11
+    utils.log("Supply a 'title' and 'section' argument to parse a title.")
  12
+
  13
+  
0  tests/gpolocator-tests.py → test/gpolocator-tests.py
File renamed without changes
0  gpolocator/__init__.py → uscode/__init__.py
File renamed without changes
0  gpolocator/grouper.py → uscode/grouper.py
File renamed without changes
0  gpolocator/models.py → uscode/models.py
File renamed without changes
2  gpolocator/parser.py → uscode/parser.py
@@ -17,7 +17,7 @@
17 17
 able to tokenize the statute text into distinct subsections/paragraphs
18 18
 before you can reassemble them into a hierarchy.
19 19
 
20  
-Because the ASCCI and XHTML files were both formatted for printing in bound
  20
+Because the ASCII and XHTML files were both formatted for printing in bound
21 21
 volumes, they dedent paragraphs/subsections when the level of nesting gets
22 22
 high enough to squish the text too close to the right margin of the page.
23 23
 Because the text of the US Code (and most other statutes and regs) is littered
0  gpolocator/schemes.py → uscode/schemes.py
File renamed without changes
0  gpolocator/structure.py → uscode/structure.py
File renamed without changes
0  gpolocator/utils.py → uscode/utils.py
File renamed without changes

0 notes on commit 8c4b7bd

Please sign in to comment.
Something went wrong with that request. Please try again.