Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

renaming gpolocator to uscode

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