From 4770a06ab765931286bc5ab6105c0d7dd6a86811 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Sat, 24 Dec 2011 14:16:49 +0100 Subject: [PATCH] Rename gbp.pq to gbp.patch_series since that's what it currently handles. --- gbp/{pq.py => patch_series.py} | 14 +++++++------- gbp/scripts/pq.py | 2 +- tests/08_test_patch.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) rename gbp/{pq.py => patch_series.py} (94%) diff --git a/gbp/pq.py b/gbp/patch_series.py similarity index 94% rename from gbp/pq.py rename to gbp/patch_series.py index ad9af57..0ab8bba 100644 --- a/gbp/pq.py +++ b/gbp/patch_series.py @@ -46,7 +46,7 @@ class Patch(object): self.long_desc = None def __repr__(self): - repr = ">> PatchSeries._read_series(['a/b', \ 'a -p1', \ 'a/b -p2'], '.') # doctest:+NORMALIZE_WHITESPACE - [, - , - ] + [, + , + ] >>> PatchSeries._read_series(['# foo', 'a/b', '', '# bar'], '.') - [] + [] @param series: series of patches in quilt format @type series: iterable of strings @@ -251,9 +251,9 @@ class PatchSeries(list): Parse a single line from a series file >>> PatchSeries._parse_line("a/b -p1", '/tmp/patches') - + >>> PatchSeries._parse_line("a/b", '.') - + """ line = line.rstrip() topic = klass._get_topic(line) diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index 9cc2f0b..78eb6a2 100644 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -30,7 +30,7 @@ from gbp.command_wrappers import (Command, GitCommand, RunAtCommand, CommandExecFailed) from gbp.errors import GbpError import gbp.log -from gbp.pq import (PatchSeries, Patch) +from gbp.patch_series import (PatchSeries, Patch) PQ_BRANCH_PREFIX = "patch-queue/" PATCH_DIR = "debian/patches/" diff --git a/tests/08_test_patch.py b/tests/08_test_patch.py index 8c25e04..8735b16 100644 --- a/tests/08_test_patch.py +++ b/tests/08_test_patch.py @@ -1,7 +1,7 @@ import os import unittest -from gbp.pq import Patch +from gbp.patch_series import Patch class TestPatch(unittest.TestCase): data_dir = "tests/%s_data" % __module__ -- 2.7.4