mirror of
https://github.com/lazylibrarian/LazyLibrarian.git
synced 2026-06-12 01:28:41 -04:00
21 lines
356 B
Python
21 lines
356 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
"""
|
|
utils.py
|
|
|
|
Created by Elliot Kroo on 2009-12-25.
|
|
Copyright (c) 2009 Elliot Kroo. All rights reserved.
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
import unittest
|
|
|
|
|
|
def toDict(tuples):
|
|
resultsDict = {}
|
|
for field, value in tuples:
|
|
if len(field) > 0 and field[0] != "-":
|
|
resultsDict[field] = value
|
|
return resultsDict;
|