aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStuart Sierra <mail@stuartsierra.com>2010-02-01 10:56:14 -0500
committerStuart Sierra <mail@stuartsierra.com>2010-02-01 12:42:47 -0500
commitec6a7579d6b1c0bfa42e3666cfad196cffc966fe (patch)
tree805b60c90c20dd5c68a16551a252b6b975e0eabf /src
parent6b68e4872211fe22752d35502b6111f693f812d7 (diff)
Change ns names for all renamed libs except str-utils
Diffstat (limited to 'src')
-rw-r--r--src/examples/clojure/clojure/contrib/pprint/examples/json.clj2
-rw-r--r--src/examples/clojure/clojure/contrib/pprint/examples/xml.clj2
-rw-r--r--src/main/clojure/clojure/contrib/command_line.clj2
-rw-r--r--src/main/clojure/clojure/contrib/condition.clj2
-rw-r--r--src/main/clojure/clojure/contrib/datalog/literals.clj2
-rw-r--r--src/main/clojure/clojure/contrib/datalog/softstrat.clj2
-rw-r--r--src/main/clojure/clojure/contrib/datalog/util.clj2
-rw-r--r--src/main/clojure/clojure/contrib/gen_html_docs.clj14
-rw-r--r--src/main/clojure/clojure/contrib/http/agent.clj6
-rw-r--r--src/main/clojure/clojure/contrib/http/connection.clj4
-rw-r--r--src/main/clojure/clojure/contrib/io.clj4
-rw-r--r--src/main/clojure/clojure/contrib/java.clj6
-rw-r--r--src/main/clojure/clojure/contrib/javadoc/browse.clj2
-rw-r--r--src/main/clojure/clojure/contrib/jmx.clj2
-rw-r--r--src/main/clojure/clojure/contrib/json.clj2
-rw-r--r--src/main/clojure/clojure/contrib/lazy_xml.clj2
-rw-r--r--src/main/clojure/clojure/contrib/load_all.clj8
-rw-r--r--src/main/clojure/clojure/contrib/miglayout/internal.clj2
-rw-r--r--src/main/clojure/clojure/contrib/mock.clj2
-rw-r--r--src/main/clojure/clojure/contrib/monadic_io_streams.clj10
-rw-r--r--src/main/clojure/clojure/contrib/repl_utils.clj2
-rw-r--r--src/main/clojure/clojure/contrib/seq.clj2
-rw-r--r--src/main/clojure/clojure/contrib/shell.clj2
-rw-r--r--src/main/clojure/clojure/contrib/sql.clj2
-rw-r--r--src/main/clojure/clojure/contrib/sql/internal.clj4
-rw-r--r--src/main/clojure/clojure/contrib/stream_utils.clj6
-rw-r--r--src/test/clojure/clojure/contrib/test_contrib/java_utils.clj4
-rw-r--r--src/test/clojure/clojure/contrib/test_contrib/seq_utils_test.clj4
-rw-r--r--src/test/clojure/clojure/contrib/test_contrib/shell_out.clj10
-rw-r--r--src/test/clojure/clojure/contrib/test_contrib/test_java_utils.clj12
-rw-r--r--src/test/clojure/clojure/contrib/test_contrib/with_ns_test.clj2
31 files changed, 64 insertions, 64 deletions
diff --git a/src/examples/clojure/clojure/contrib/pprint/examples/json.clj b/src/examples/clojure/clojure/contrib/pprint/examples/json.clj
index 3cde1751..97d76844 100644
--- a/src/examples/clojure/clojure/contrib/pprint/examples/json.clj
+++ b/src/examples/clojure/clojure/contrib/pprint/examples/json.clj
@@ -19,7 +19,7 @@
This is an example of using a pretty printer dispatch function to generate JSON output",
:see-also [["http://json.org/", "JSON Home Page"]]}
clojure.contrib.pprint.examples.json
- (:require [clojure.contrib.java-utils :as j])
+ (:require [clojure.contrib.java :as j])
(:use [clojure.test :only (deftest- is)]
[clojure.contrib.pprint :only (write formatter-out)]))
diff --git a/src/examples/clojure/clojure/contrib/pprint/examples/xml.clj b/src/examples/clojure/clojure/contrib/pprint/examples/xml.clj
index 3a2b9ae8..2753eb9d 100644
--- a/src/examples/clojure/clojure/contrib/pprint/examples/xml.clj
+++ b/src/examples/clojure/clojure/contrib/pprint/examples/xml.clj
@@ -20,7 +20,7 @@
:doc "A version of prxml that uses a pretty print dispatch function."}
clojure.contrib.pprint.examples.xml
(:use [clojure.contrib.lazy-xml :only (escape-xml)]
- [clojure.contrib.java-utils :only (as-str)]
+ [clojure.contrib.java :only (as-str)]
[clojure.contrib.pprint :only (formatter-out write)]
[clojure.contrib.pprint.utilities :only (prlabel)]))
diff --git a/src/main/clojure/clojure/contrib/command_line.clj b/src/main/clojure/clojure/contrib/command_line.clj
index 466dd7a7..56a2fece 100644
--- a/src/main/clojure/clojure/contrib/command_line.clj
+++ b/src/main/clojure/clojure/contrib/command_line.clj
@@ -12,7 +12,7 @@
#^{:author "Chris Houser",
:doc "Process command-line arguments according to a given cmdspec"}
clojure.contrib.command-line
- (:require (clojure.contrib [seq-utils :as su]))
+ (:require (clojure.contrib [seq :as su]))
(:use (clojure.contrib [str-utils :only (str-join)])))
(defn make-map [args cmdspec]
diff --git a/src/main/clojure/clojure/contrib/condition.clj b/src/main/clojure/clojure/contrib/condition.clj
index 98aa589a..32397a84 100644
--- a/src/main/clojure/clojure/contrib/condition.clj
+++ b/src/main/clojure/clojure/contrib/condition.clj
@@ -40,7 +40,7 @@ http://groups.google.com/group/clojure/browse_frm/thread/da1285c538f22bb5"}
clojure.lang.IPersistentMap)
(:use (clojure.contrib
[def :only (defvar)]
- [seq-utils :only (separate)])))
+ [seq :only (separate)])))
(defvar *condition*
"While a handler is running, bound to the condition being handled")
diff --git a/src/main/clojure/clojure/contrib/datalog/literals.clj b/src/main/clojure/clojure/contrib/datalog/literals.clj
index 12605160..8a9e7948 100644
--- a/src/main/clojure/clojure/contrib/datalog/literals.clj
+++ b/src/main/clojure/clojure/contrib/datalog/literals.clj
@@ -19,7 +19,7 @@
(:use clojure.contrib.datalog.database)
(:use [clojure.set :only (intersection)])
(:use [clojure.contrib.set :only (subset?)])
- (:use [clojure.contrib.seq-utils :only (flatten)]))
+ (:use [clojure.contrib.seq :only (flatten)]))
;;; Type Definitions
diff --git a/src/main/clojure/clojure/contrib/datalog/softstrat.clj b/src/main/clojure/clojure/contrib/datalog/softstrat.clj
index b65434c4..e193fbb9 100644
--- a/src/main/clojure/clojure/contrib/datalog/softstrat.clj
+++ b/src/main/clojure/clojure/contrib/datalog/softstrat.clj
@@ -21,7 +21,7 @@
clojure.contrib.datalog.rules
clojure.contrib.datalog.magic)
(:use [clojure.set :only (union intersection difference)])
- (:use [clojure.contrib.seq-utils :only (indexed)])
+ (:use [clojure.contrib.seq :only (indexed)])
(:require [clojure.contrib.graph :as graph]))
diff --git a/src/main/clojure/clojure/contrib/datalog/util.clj b/src/main/clojure/clojure/contrib/datalog/util.clj
index b887f85c..c17b77da 100644
--- a/src/main/clojure/clojure/contrib/datalog/util.clj
+++ b/src/main/clojure/clojure/contrib/datalog/util.clj
@@ -15,7 +15,7 @@
(ns clojure.contrib.datalog.util
- (:use [clojure.contrib.seq-utils :only (separate)]))
+ (:use [clojure.contrib.seq :only (separate)]))
diff --git a/src/main/clojure/clojure/contrib/gen_html_docs.clj b/src/main/clojure/clojure/contrib/gen_html_docs.clj
index 364d4279..3885b3e9 100644
--- a/src/main/clojure/clojure/contrib/gen_html_docs.clj
+++ b/src/main/clojure/clojure/contrib/gen_html_docs.clj
@@ -46,8 +46,8 @@
:doc "Generates a single HTML page that contains the documentation for
one or more Clojure libraries."}
clojure.contrib.gen-html-docs
- (:require [clojure.contrib.duck-streams :as duck-streams])
- (:use [clojure.contrib seq-utils str-utils repl-utils def prxml])
+ (:require [clojure.contrib.io :as io])
+ (:use [clojure.contrib seq str-utils repl-utils def prxml])
(:import [java.lang Exception]
[java.util.regex Pattern]))
@@ -457,7 +457,7 @@ libraries."
"Calls generate-documentation on the libraries named by libs and
emits the generated HTML to the path named by path."
[path libs]
- (duck-streams/spit path (generate-documentation libs)))
+ (io/spit path (generate-documentation libs)))
(comment
(generate-documentation-to-file
@@ -481,7 +481,7 @@ emits the generated HTML to the path named by path."
'clojure.contrib.complex-numbers
'clojure.contrib.cond
'clojure.contrib.def
- 'clojure.contrib.duck-streams
+ 'clojure.contrib.io
'clojure.contrib.enum
'clojure.contrib.error-kit
'clojure.contrib.except
@@ -507,9 +507,9 @@ emits the generated HTML to the path named by path."
'clojure.contrib.prxml
'clojure.contrib.repl-ln
'clojure.contrib.repl-utils
- 'clojure.contrib.seq-utils
+ 'clojure.contrib.seq
'clojure.contrib.server-socket
- 'clojure.contrib.shell-out
+ 'clojure.contrib.shell
'clojure.contrib.sql
'clojure.contrib.stream-utils
'clojure.contrib.str-utils
@@ -532,7 +532,7 @@ emits the generated HTML to the path named by path."
'clojure.contrib.test-clojure.printer
'clojure.contrib.test-clojure.reader
'clojure.contrib.test-clojure.sequences
- 'clojure.contrib.test-contrib.shell-out
+ 'clojure.contrib.test-contrib.shell
'clojure.contrib.test-contrib.str-utils
'clojure.contrib.zip-filter.xml
]))
diff --git a/src/main/clojure/clojure/contrib/http/agent.clj b/src/main/clojure/clojure/contrib/http/agent.clj
index 6a3e082f..edae6f96 100644
--- a/src/main/clojure/clojure/contrib/http/agent.clj
+++ b/src/main/clojure/clojure/contrib/http/agent.clj
@@ -52,7 +52,7 @@
And you could write the response directly to a file like this:
- (require '[clojure.contrib.duck-streams :as d])
+ (require '[clojure.contrib.io :as d])
(http-agent \"http...\"
:handler (fn [agnt]
@@ -65,7 +65,7 @@
clojure.contrib.http.agent
(:refer-clojure :exclude [bytes])
(:require [clojure.contrib.http.connection :as c]
- [clojure.contrib.duck-streams :as duck])
+ [clojure.contrib.io :as duck])
(:import (java.io InputStream ByteArrayOutputStream
ByteArrayInputStream)
(java.net HttpURLConnection)))
@@ -261,7 +261,7 @@
encoding.
If no encoding is given, uses the encoding specified in the server
- headers, or clojure.contrib.duck-streams/*default-encoding* if it is
+ headers, or clojure.contrib.io/*default-encoding* if it is
not specified."
([http-agnt]
(await http-agnt) ;; have to wait for Content-Encoding
diff --git a/src/main/clojure/clojure/contrib/http/connection.clj b/src/main/clojure/clojure/contrib/http/connection.clj
index 4eda0fa6..7d5207b5 100644
--- a/src/main/clojure/clojure/contrib/http/connection.clj
+++ b/src/main/clojure/clojure/contrib/http/connection.clj
@@ -13,8 +13,8 @@
(ns #^{:doc "Low-level HTTP client API around HttpURLConnection"}
clojure.contrib.http.connection
- (:require [clojure.contrib.duck-streams :as duck]
- [clojure.contrib.java-utils :as j])
+ (:require [clojure.contrib.io :as duck]
+ [clojure.contrib.java :as j])
(:import (java.net URI URL HttpURLConnection)
(java.io File InputStream Reader)))
diff --git a/src/main/clojure/clojure/contrib/io.clj b/src/main/clojure/clojure/contrib/io.clj
index 027aae4d..415073e4 100644
--- a/src/main/clojure/clojure/contrib/io.clj
+++ b/src/main/clojure/clojure/contrib/io.clj
@@ -29,7 +29,7 @@
;; May 13, 2009: added functions to open writers for appending
;;
;; May 3, 2009: renamed file to file-str, for compatibility with
-;; clojure.contrib.java-utils. reader/writer no longer use this
+;; clojure.contrib.java. reader/writer no longer use this
;; function.
;;
;; February 16, 2009: (lazy branch) fixed read-lines to work with lazy
@@ -57,7 +57,7 @@
Note: this is not really \"duck typing\" as implemented in languages
like Ruby. A better name would have been \"do-what-I-mean-streams\"
or \"just-give-me-a-stream\", but ducks are funnier."}
- clojure.contrib.duck-streams
+ clojure.contrib.io
(:import
(java.io Reader InputStream InputStreamReader PushbackReader
BufferedReader File PrintWriter OutputStream
diff --git a/src/main/clojure/clojure/contrib/java.clj b/src/main/clojure/clojure/contrib/java.clj
index e8d93782..353a64ff 100644
--- a/src/main/clojure/clojure/contrib/java.clj
+++ b/src/main/clojure/clojure/contrib/java.clj
@@ -54,14 +54,14 @@
If something in this module violates the principle of least surprise, please
let me (Stu) and the Clojure community know via the mailing list.
"}
- clojure.contrib.java-utils
+ clojure.contrib.java
(:import [java.io File FileOutputStream]
[java.util Properties]
[java.net URI URL]))
(defmulti relative-path-string
"Interpret a String or java.io.File as a relative path string.
- Building block for clojure.contrib.java-utils/file."
+ Building block for clojure.contrib.java/file."
class)
(defmethod relative-path-string String [#^String s]
@@ -74,7 +74,7 @@
(defmulti #^File as-file
"Interpret a String or a java.io.File as a File. Building block
- for clojure.contrib.java-utils/file, which you should prefer
+ for clojure.contrib.java/file, which you should prefer
in most cases."
class)
(defmethod as-file String [#^String s] (File. s))
diff --git a/src/main/clojure/clojure/contrib/javadoc/browse.clj b/src/main/clojure/clojure/contrib/javadoc/browse.clj
index e42c5ecf..b6d99e4d 100644
--- a/src/main/clojure/clojure/contrib/javadoc/browse.clj
+++ b/src/main/clojure/clojure/contrib/javadoc/browse.clj
@@ -13,7 +13,7 @@
#^{:author "Christophe Grand",
:doc "Start a web browser from Clojure"}
clojure.contrib.javadoc.browse
- (:require [clojure.contrib.shell-out :as sh])
+ (:require [clojure.contrib.shell :as sh])
(:import (java.net URI)))
(defn- macosx? []
diff --git a/src/main/clojure/clojure/contrib/jmx.clj b/src/main/clojure/clojure/contrib/jmx.clj
index dd6d7588..9d65ee20 100644
--- a/src/main/clojure/clojure/contrib/jmx.clj
+++ b/src/main/clojure/clojure/contrib/jmx.clj
@@ -72,7 +72,7 @@
clojure.contrib.jmx
(:refer-clojure :exclude [read])
(:use clojure.contrib.def
- [clojure.contrib.java-utils :only [as-str]]
+ [clojure.contrib.java :only [as-str]]
[clojure.stacktrace :only (root-cause)]
[clojure.walk :only [postwalk]])
(:import [clojure.lang Associative]
diff --git a/src/main/clojure/clojure/contrib/json.clj b/src/main/clojure/clojure/contrib/json.clj
index 7884f3a2..d89f0036 100644
--- a/src/main/clojure/clojure/contrib/json.clj
+++ b/src/main/clojure/clojure/contrib/json.clj
@@ -17,7 +17,7 @@
To write JSON, use json-str, write-json, or write-json.
To read JSON, use read-json."}
clojure.contrib.json
- (:require [clojure.contrib.java-utils :as j])
+ (:require [clojure.contrib.java :as j])
(:import (java.io PrintWriter PushbackReader StringWriter
StringReader Reader EOFException)))
diff --git a/src/main/clojure/clojure/contrib/lazy_xml.clj b/src/main/clojure/clojure/contrib/lazy_xml.clj
index 8b385b93..1a8bed67 100644
--- a/src/main/clojure/clojure/contrib/lazy_xml.clj
+++ b/src/main/clojure/clojure/contrib/lazy_xml.clj
@@ -13,7 +13,7 @@
:doc "Functions to parse xml lazily and emit back to text."}
clojure.contrib.lazy-xml
(:use [clojure.xml :as xml :only []]
- [clojure.contrib.seq-utils :only [fill-queue]])
+ [clojure.contrib.seq :only [fill-queue]])
(:import (org.xml.sax Attributes InputSource)
(org.xml.sax.helpers DefaultHandler)
(javax.xml.parsers SAXParserFactory)
diff --git a/src/main/clojure/clojure/contrib/load_all.clj b/src/main/clojure/clojure/contrib/load_all.clj
index 7a38230a..5e7ca36c 100644
--- a/src/main/clojure/clojure/contrib/load_all.clj
+++ b/src/main/clojure/clojure/contrib/load_all.clj
@@ -37,7 +37,7 @@ command-line
complex-numbers
cond
def
-duck-streams
+io
error-kit
except
fcase
@@ -70,17 +70,17 @@ probabilities.random-numbers
prxml
repl-ln
repl-utils
-seq-utils
+seq
server-socket
set
-shell-out
+shell
sql
str-utils
str-utils2
stream-utils
swing-utils
test-contrib
-test-contrib.shell-out
+test-contrib.shell
test-contrib.str-utils
trace
types
diff --git a/src/main/clojure/clojure/contrib/miglayout/internal.clj b/src/main/clojure/clojure/contrib/miglayout/internal.clj
index e06bd2e0..f510a50a 100644
--- a/src/main/clojure/clojure/contrib/miglayout/internal.clj
+++ b/src/main/clojure/clojure/contrib/miglayout/internal.clj
@@ -21,7 +21,7 @@
[core :only (new-by-name)]
[except :only (throwf)]
[fcase :only (fcase)]
- [java-utils :only (as-str)])))
+ [java :only (as-str)])))
(def MigLayout "net.miginfocom.swing.MigLayout")
(def LayoutCallback "net.miginfocom.layout.LayoutCallback")
diff --git a/src/main/clojure/clojure/contrib/mock.clj b/src/main/clojure/clojure/contrib/mock.clj
index a284b527..e66d1fd1 100644
--- a/src/main/clojure/clojure/contrib/mock.clj
+++ b/src/main/clojure/clojure/contrib/mock.clj
@@ -53,7 +53,7 @@
(ns clojure.contrib.mock
#^{:author "Matt Clark",
:doc "function mocking/expectations for Clojure" }
- (:use [clojure.contrib.seq-utils :only (positions)]
+ (:use [clojure.contrib.seq :only (positions)]
[clojure.contrib.def :only (defmacro-)]))
diff --git a/src/main/clojure/clojure/contrib/monadic_io_streams.clj b/src/main/clojure/clojure/contrib/monadic_io_streams.clj
index 28772283..6109ef92 100644
--- a/src/main/clojure/clojure/contrib/monadic_io_streams.clj
+++ b/src/main/clojure/clojure/contrib/monadic_io_streams.clj
@@ -26,7 +26,7 @@
(:use [clojure.contrib.monads
:only (with-monad domonad state-m state-m-until)])
(:use [clojure.contrib.generic.functor :only (fmap)])
- (:use [clojure.contrib.duck-streams :only (reader writer)]))
+ (:use [clojure.contrib.io :only (reader writer)]))
;
; Wrap the state into a closure to make sure that "evil" code
@@ -82,7 +82,7 @@
(defn with-reader
"Create a reader from reader-spec, run the monadic I/O statement
on it, and close the reader. reader-spec can be any object accepted
- by clojure.contrib.duck-streams/reader."
+ by clojure.contrib.io/reader."
[reader-spec statement]
(with-open [r (reader reader-spec)]
(first (statement (lock r)))))
@@ -90,7 +90,7 @@
(defn with-writer
"Create a writer from writer-spec, run the monadic I/O statement
on it, and close the writer. writer-spec can be any object accepted
- by clojure.contrib.duck-streams/writer."
+ by clojure.contrib.io/writer."
[writer-spec statement]
(with-open [w (writer writer-spec)]
(first (statement (lock w)))))
@@ -101,8 +101,8 @@
a binding-like vector in which each stream is specified by
three element: a keyword by which the stream can be referred to,
the stream mode (:read or :write), and a stream specification as
- accepted by clojure.contrib.duck-streams/reader (mode :read) or
- clojure.contrib.duck-streams/writer (mode :write). The statement
+ accepted by clojure.contrib.io/reader (mode :read) or
+ clojure.contrib.io/writer (mode :write). The statement
is run on a state which is a map from keywords to corresponding
streams. Single-stream monadic I/O statements must be wrapped
with clojure.contrib.monads/with-state-field."
diff --git a/src/main/clojure/clojure/contrib/repl_utils.clj b/src/main/clojure/clojure/contrib/repl_utils.clj
index 30c483ca..d5c18151 100644
--- a/src/main/clojure/clojure/contrib/repl_utils.clj
+++ b/src/main/clojure/clojure/contrib/repl_utils.clj
@@ -15,7 +15,7 @@
(:import (java.io File LineNumberReader InputStreamReader PushbackReader)
(java.lang.reflect Modifier Method Constructor)
(clojure.lang RT Compiler Compiler$C))
- (:use [clojure.contrib.seq-utils :only (indexed)]
+ (:use [clojure.contrib.seq :only (indexed)]
[clojure.contrib.javadoc.browse :only (browse-url)]
[clojure.contrib.str-utils :only (str-join re-sub re-partition)]))
diff --git a/src/main/clojure/clojure/contrib/seq.clj b/src/main/clojure/clojure/contrib/seq.clj
index ad913f70..8575e732 100644
--- a/src/main/clojure/clojure/contrib/seq.clj
+++ b/src/main/clojure/clojure/contrib/seq.clj
@@ -24,7 +24,7 @@
(ns
#^{:author "Stuart Sierra (and others)",
:doc "Sequence utilities for Clojure"}
- clojure.contrib.seq-utils
+ clojure.contrib.seq
(:import (java.util.concurrent LinkedBlockingQueue TimeUnit)
(java.lang.ref WeakReference)))
diff --git a/src/main/clojure/clojure/contrib/shell.clj b/src/main/clojure/clojure/contrib/shell.clj
index 5e0be467..3a24b19c 100644
--- a/src/main/clojure/clojure/contrib/shell.clj
+++ b/src/main/clojure/clojure/contrib/shell.clj
@@ -15,7 +15,7 @@
#^{:author "Chris Houser",
:doc "Conveniently launch a sub-process providing to its stdin and
collecting its stdout"}
- clojure.contrib.shell-out
+ clojure.contrib.shell
(:import (java.io InputStreamReader OutputStreamWriter)))
(def *sh-dir* nil)
diff --git a/src/main/clojure/clojure/contrib/sql.clj b/src/main/clojure/clojure/contrib/sql.clj
index 5398c499..98080ee3 100644
--- a/src/main/clojure/clojure/contrib/sql.clj
+++ b/src/main/clojure/clojure/contrib/sql.clj
@@ -25,7 +25,7 @@
clojure.contrib.sql
(:use (clojure.contrib
[def :only (defalias)]
- [java-utils :only (as-str)])
+ [java :only (as-str)])
clojure.contrib.sql.internal))
(defalias find-connection find-connection*)
diff --git a/src/main/clojure/clojure/contrib/sql/internal.clj b/src/main/clojure/clojure/contrib/sql/internal.clj
index 290ebec3..7da7588b 100644
--- a/src/main/clojure/clojure/contrib/sql/internal.clj
+++ b/src/main/clojure/clojure/contrib/sql/internal.clj
@@ -15,8 +15,8 @@
(:use
(clojure.contrib
[except :only (throwf throw-arg)]
- [java-utils :only (as-properties)]
- [seq-utils :only (indexed)]))
+ [java :only (as-properties)]
+ [seq :only (indexed)]))
(:import
(clojure.lang RT)
(java.sql BatchUpdateException DriverManager SQLException Statement)
diff --git a/src/main/clojure/clojure/contrib/stream_utils.clj b/src/main/clojure/clojure/contrib/stream_utils.clj
index 35c5c90e..7a09ca6a 100644
--- a/src/main/clojure/clojure/contrib/stream_utils.clj
+++ b/src/main/clojure/clojure/contrib/stream_utils.clj
@@ -59,7 +59,7 @@
(:use [clojure.contrib.types :only (deftype deftype-)])
(:use [clojure.contrib.monads :only (defmonad with-monad)])
(:use [clojure.contrib.def :only (defvar defvar-)])
- (:require [clojure.contrib.seq-utils])
+ (:require [clojure.contrib.seq])
(:require [clojure.contrib.generic.collection]))
@@ -112,7 +112,7 @@
(defn stream-seq
"Return a lazy seq on the stream. Also accessible via
- clojure.contrib.seq-utils/seq-on and
+ clojure.contrib.seq/seq-on and
clojure.contrib.generic.collection/seq for streams."
[s]
(lazy-seq
@@ -121,7 +121,7 @@
nil
(cons v (stream-seq ns))))))
-(defmethod clojure.contrib.seq-utils/seq-on stream-type
+(defmethod clojure.contrib.seq/seq-on stream-type
[s]
(stream-seq s))
diff --git a/src/test/clojure/clojure/contrib/test_contrib/java_utils.clj b/src/test/clojure/clojure/contrib/test_contrib/java_utils.clj
index 44901ad1..2d74343a 100644
--- a/src/test/clojure/clojure/contrib/test_contrib/java_utils.clj
+++ b/src/test/clojure/clojure/contrib/test_contrib/java_utils.clj
@@ -1,5 +1,5 @@
-(ns clojure.contrib.test-contrib.java-utils
- (:use clojure.test clojure.contrib.java-utils))
+(ns clojure.contrib.test-contrib.java
+ (:use clojure.test clojure.contrib.java))
(deftest t-as-str
(is (= "foo" (as-str "foo")))
diff --git a/src/test/clojure/clojure/contrib/test_contrib/seq_utils_test.clj b/src/test/clojure/clojure/contrib/test_contrib/seq_utils_test.clj
index 0958fc65..84ffbace 100644
--- a/src/test/clojure/clojure/contrib/test_contrib/seq_utils_test.clj
+++ b/src/test/clojure/clojure/contrib/test_contrib/seq_utils_test.clj
@@ -1,6 +1,6 @@
-(ns clojure.contrib.test-contrib.seq-utils-test
+(ns clojure.contrib.test-contrib.seq-test
(:use clojure.test
- clojure.contrib.seq-utils))
+ clojure.contrib.seq))
(deftest test-positions
diff --git a/src/test/clojure/clojure/contrib/test_contrib/shell_out.clj b/src/test/clojure/clojure/contrib/test_contrib/shell_out.clj
index c5447099..7af31deb 100644
--- a/src/test/clojure/clojure/contrib/test_contrib/shell_out.clj
+++ b/src/test/clojure/clojure/contrib/test_contrib/shell_out.clj
@@ -1,12 +1,12 @@
-(ns clojure.contrib.test-contrib.shell-out
+(ns clojure.contrib.test-contrib.shell
(:use clojure.test
- clojure.contrib.shell-out)
+ clojure.contrib.shell)
(:import (java.io File)))
; workaroung to access private parse-args. Better way?
-(def parse-args ((ns-interns 'clojure.contrib.shell-out) 'parse-args))
-(def as-file ((ns-interns 'clojure.contrib.shell-out) 'as-file))
-(def as-env-string ((ns-interns 'clojure.contrib.shell-out) 'as-env-string))
+(def parse-args ((ns-interns 'clojure.contrib.shell) 'parse-args))
+(def as-file ((ns-interns 'clojure.contrib.shell) 'as-file))
+(def as-env-string ((ns-interns 'clojure.contrib.shell) 'as-env-string))
(deftest test-parse-args
(are [x y] (= x y)
diff --git a/src/test/clojure/clojure/contrib/test_contrib/test_java_utils.clj b/src/test/clojure/clojure/contrib/test_contrib/test_java_utils.clj
index 8e0f67c4..7ccc5154 100644
--- a/src/test/clojure/clojure/contrib/test_contrib/test_java_utils.clj
+++ b/src/test/clojure/clojure/contrib/test_contrib/test_java_utils.clj
@@ -1,7 +1,7 @@
-(ns clojure.contrib.test-contrib.test-java-utils
+(ns clojure.contrib.test-contrib.test-java
(:use clojure.test
- [clojure.contrib.duck-streams :only (spit)]
- clojure.contrib.java-utils)
+ [clojure.contrib.io :only (spit)]
+ clojure.contrib.java)
(:import [java.io File]
[java.net URL URI]
[java.util Properties]))
@@ -65,7 +65,7 @@
(deftest test-set-system-properties
(testing "set and then unset a property using keywords"
- (let [propname :clojure.contrib.java-utils.test-set-system-properties]
+ (let [propname :clojure.contrib.java.test-set-system-properties]
(is (nil? (get-system-property propname)))
(set-system-properties {propname :foo})
(is (= "foo") (get-system-property propname))
@@ -74,7 +74,7 @@
)
(deftest test-with-system-properties
- (let [propname :clojure.contrib.java-utils.test-with-system-properties]
+ (let [propname :clojure.contrib.java.test-with-system-properties]
(testing "sets a property only for the duration of a block"
(is (= "foo"
(with-system-properties {propname "foo"}
@@ -82,7 +82,7 @@
(is (nil? (get-system-property propname)))))
(testing "leaves other properties alone"
; TODO: write this test better, using a properties -> map function
- (let [propname :clojure.contrib.java-utils.test-with-system-properties
+ (let [propname :clojure.contrib.java.test-with-system-properties
propcount (count (System/getProperties))]
(with-system-properties {propname "foo"}
(is (= (inc propcount) (count (System/getProperties)))))
diff --git a/src/test/clojure/clojure/contrib/test_contrib/with_ns_test.clj b/src/test/clojure/clojure/contrib/test_contrib/with_ns_test.clj
index 09137bc0..61fee6e3 100644
--- a/src/test/clojure/clojure/contrib/test_contrib/with_ns_test.clj
+++ b/src/test/clojure/clojure/contrib/test_contrib/with_ns_test.clj
@@ -1,7 +1,7 @@
(ns clojure.contrib.test-contrib.with-ns-test
(:use clojure.test
clojure.contrib.with-ns
- [clojure.contrib.seq-utils :only (includes?)]))
+ [clojure.contrib.seq :only (includes?)]))
(deftest test-namespace-gets-removed
(let [all-ns-names (fn [] (map #(.name %) (all-ns)))]