[cosmetic] remove superfluous hash-bangs and the entry point in ``hgviewlib/application.py`` (closes #78002)

imported patch default_78002_remove_hashbangs.diff

authorAlain Leufroy <alain.leufroy@logilab.fr>
changesetb3a3bf6de071
branchdefault
phasepublic
hiddenno
parent revision#06ee39817550 [core] mercurial 2.0 support (closes #84549)
child revision#33d334a26e40 [console] add history and completion for command (closes #84733)
files modified by this revision
bin/hgview
hgviewlib/application.py
hgviewlib/curses/canvas.py
hgviewlib/curses/exceptions.py
hgviewlib/curses/graphlog.py
hgviewlib/curses/helpviewer.py
hgviewlib/curses/hgrepoviewer.py
hgviewlib/curses/mainframe.py
hgviewlib/curses/manifest.py
hgviewlib/curses/tests/tests_application_patches.py
hgviewlib/curses/tests/tests_utils.py
hgviewlib/curses/utils.py
hgviewlib/curses/widgets.py
hgviewlib/inotify.py
hgviewlib/qt4/application.py
hgviewlib/qt4/helpviewer.py
hgviewlib/qt4/hgrepoviewer.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1322034558 -3600
# Wed Nov 23 08:49:18 2011 +0100
# Node ID b3a3bf6de071dc49f43b290b2a1ed1a98bdf488f
# Parent 06ee398175507bee7ecbb894560e60673ad75702
[cosmetic] remove superfluous hash-bangs and the entry point in ``hgviewlib/application.py`` (closes #78002)

imported patch default_78002_remove_hashbangs.diff

diff --git a/bin/hgview b/bin/hgview
@@ -29,6 +29,5 @@
1      sys.path.append(pos.abspath(pos.join(pos.dirname(execpath), "..")))
2 
3  from hgviewlib.application import main
4 
5  main()
6 -
diff --git a/hgviewlib/application.py b/hgviewlib/application.py
@@ -1,6 +1,5 @@
7 -#! /usr/bin/env python
8  # -*- coding: utf-8 -*-
9  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
10  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
11  #
12  # This program is free software; you can redistribute it and/or modify it under
@@ -189,8 +188,5 @@
13      try:
14          sys.exit(start(repo, opts, args, parser.error))
15      except KeyboardInterrupt:
16          print 'interrupted!'
17 
18 -if __name__ == "__main__":
19 -    main()
20 -
diff --git a/hgviewlib/curses/canvas.py b/hgviewlib/curses/canvas.py
@@ -1,6 +1,5 @@
21 -#! /usr/bin/env python
22  # -*- coding: utf-8 -*-
23  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
24  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
25  #
26  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/exceptions.py b/hgviewlib/curses/exceptions.py
@@ -1,6 +1,5 @@
27 -#! /usr/bin/env python
28  # -*- coding: utf-8 -*-
29  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
30  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
31  #
32  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/graphlog.py b/hgviewlib/curses/graphlog.py
@@ -1,6 +1,5 @@
33 -#! /usr/bin/env python
34  # -*- coding: utf-8 -*-
35  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
36  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
37  #
38  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/helpviewer.py b/hgviewlib/curses/helpviewer.py
@@ -1,6 +1,5 @@
39 -#! /usr/bin/env python
40  # -*- coding: utf-8 -*-
41  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
42  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
43  #
44  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/hgrepoviewer.py b/hgviewlib/curses/hgrepoviewer.py
@@ -1,6 +1,5 @@
45 -#! /usr/bin/env python
46  # -*- coding: utf-8 -*-
47  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
48  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
49  #
50  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/mainframe.py b/hgviewlib/curses/mainframe.py
@@ -1,6 +1,5 @@
51 -#! /usr/bin/env python
52  # -*- coding: utf-8 -*-
53  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
54  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
55  #
56  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/manifest.py b/hgviewlib/curses/manifest.py
@@ -1,6 +1,5 @@
57 -#! /usr/bin/env python
58  # -*- coding: utf-8 -*-
59  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
60  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
61  #
62  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/tests/tests_application_patches.py b/hgviewlib/curses/tests/tests_application_patches.py
@@ -1,6 +1,5 @@
63 -#! /usr/bin/env python
64  # -*- coding: utf-8 -*-
65  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
66  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
67  #
68  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/tests/tests_utils.py b/hgviewlib/curses/tests/tests_utils.py
@@ -1,6 +1,5 @@
69 -#! /usr/bin/env python
70  # -*- coding: utf-8 -*-
71  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
72  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
73  #
74  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/utils.py b/hgviewlib/curses/utils.py
@@ -1,6 +1,5 @@
75 -#! /usr/bin/env python
76  # -*- coding: utf-8 -*-
77  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
78  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
79  #
80  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/curses/widgets.py b/hgviewlib/curses/widgets.py
@@ -1,6 +1,5 @@
81 -#! /usr/bin/env python
82  # -*- coding: utf-8 -*-
83  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
84  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
85  #
86  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/inotify.py b/hgviewlib/inotify.py
@@ -1,6 +1,5 @@
87 -#! /usr/bin/env python
88  # -*- coding: utf-8 -*-
89  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
90  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
91  #
92  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/qt4/application.py b/hgviewlib/qt4/application.py
@@ -1,6 +1,5 @@
93 -#! /usr/bin/env python
94  # -*- coding: utf-8 -*-
95  # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
96  # http://www.logilab.fr/ -- mailto:contact@logilab.fr
97  #
98  # This program is free software; you can redistribute it and/or modify it under
diff --git a/hgviewlib/qt4/helpviewer.py b/hgviewlib/qt4/helpviewer.py
@@ -1,7 +1,6 @@
99  # -*- coding: iso-8859-1 -*-
100 -#!/usr/bin/env python
101  # main.py - qt4-based hg rev log browser
102  #
103  # Copyright (C) 2007-2010 Logilab. All rights reserved.
104  #
105  # This software may be used and distributed according to the terms
diff --git a/hgviewlib/qt4/hgrepoviewer.py b/hgviewlib/qt4/hgrepoviewer.py
@@ -1,7 +1,6 @@
106  # -*- coding: iso-8859-1 -*-
107 -#!/usr/bin/env python
108  # main.py - qt4-based hg rev log browser
109  #
110  # Copyright (C) 2007-2010 Logilab. All rights reserved.
111  #
112  # This software may be used and distributed according to the terms