Skip to content

Commit

Permalink
renaming gpolocator to uscode
Browse files Browse the repository at this point in the history
  • Loading branch information
konklone committed Sep 26, 2012
1 parent aa11d27 commit 8c4b7bd
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,3 +1,3 @@
/virt
/data
*.pyc
*.pyc
2 changes: 1 addition & 1 deletion tasks/gitdump-flat.py
Expand Up @@ -5,7 +5,7 @@
import subprocess

from logbook import Logger
from gpolocator import File
from uscode import File
import utils


Expand Down
8 changes: 4 additions & 4 deletions tasks/gitdump.py
Expand Up @@ -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"]
Expand Down
10 changes: 9 additions & 1 deletion 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.")


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion gpolocator/parser.py → uscode/parser.py
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8c4b7bd

Please sign in to comment.