diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/abook.py b/abook.py index <HASH>..<HASH> 100644 --- a/abook.py +++ b/abook.py @@ -189,6 +189,10 @@ class Abook(object): self._update() return [Abook._gen_uid(entry, self._book[entry]['name']) for entry in self._book.sections()] + def get_filesnames(self): + """All filenames"""...
Add get_filesnames for API compatibility
py
diff --git a/mtools/util/logline.py b/mtools/util/logline.py index <HASH>..<HASH> 100644 --- a/mtools/util/logline.py +++ b/mtools/util/logline.py @@ -97,7 +97,10 @@ class LogLine(object): split_tokens = self.split_tokens if len(split_tokens) > 0 and split_tokens[-1].endswith('ms'): - ...
fixed a bug where log lines ending in " ms" without a number were throwing an exception when calculating duration.
py
diff --git a/docs/source/user-guide/examples/ll_fpadd.py b/docs/source/user-guide/examples/ll_fpadd.py index <HASH>..<HASH> 100644 --- a/docs/source/user-guide/examples/ll_fpadd.py +++ b/docs/source/user-guide/examples/ll_fpadd.py @@ -49,6 +49,7 @@ def compile_ir(engine, llvm_ir): # Now add the module and make sur...
include static ctor call in documentation.
py
diff --git a/pyaxmlparser/core.py b/pyaxmlparser/core.py index <HASH>..<HASH> 100644 --- a/pyaxmlparser/core.py +++ b/pyaxmlparser/core.py @@ -151,7 +151,8 @@ class APK: key = '0x' + key[1:] hex_value = self.arsc.get_id(value, int(key, 0))[1] rsc = self.arsc.get_string(value, hex_...
hotfix: warnings in debug
py
diff --git a/salt/modules/hosts.py b/salt/modules/hosts.py index <HASH>..<HASH> 100644 --- a/salt/modules/hosts.py +++ b/salt/modules/hosts.py @@ -11,7 +11,7 @@ import os import salt.utils import salt.utils.odict as odict from six.moves import range -import six +import salt.utils.six as six # pylint: disable=C0...
Replaced import six in file /salt/modules/hosts.py
py
diff --git a/tests/test_main_options.py b/tests/test_main_options.py index <HASH>..<HASH> 100644 --- a/tests/test_main_options.py +++ b/tests/test_main_options.py @@ -108,7 +108,7 @@ class TestNoOptions: class TestInvalidMobanFile: def setUp(self): - self.config_file = '.moban.yaml' + self.config_...
bring back <I>% test coverage
py
diff --git a/pylama/config.py b/pylama/config.py index <HASH>..<HASH> 100644 --- a/pylama/config.py +++ b/pylama/config.py @@ -48,7 +48,6 @@ def split_csp_str(val): """ Split comma separated string into unique values, keeping their order. :returns: list of splitted values - """ seen = set() v...
Rename async to async_mode Fixes W<I> 'async' and 'await' are reserved keywords starting with Python <I> This continues to accept `--async` as an argument and `async = 1` in config files. Therefore this commit should not be breaking.
py
diff --git a/Malmo/samples/Python_examples/default_world_test.py b/Malmo/samples/Python_examples/default_world_test.py index <HASH>..<HASH> 100755 --- a/Malmo/samples/Python_examples/default_world_test.py +++ b/Malmo/samples/Python_examples/default_world_test.py @@ -97,7 +97,7 @@ if agent_host.receivedArgument("test"):...
Default world test failing to record.
py
diff --git a/synapse/daemon.py b/synapse/daemon.py index <HASH>..<HASH> 100644 --- a/synapse/daemon.py +++ b/synapse/daemon.py @@ -378,7 +378,7 @@ class Daemon(EventBus): items = list(link.get('dmon:items').values()) for item in items: - if hasattr(item, 'fini'): +...
Only try to close items which are s_coro.Fini objects.
py
diff --git a/openpnm/core/_base.py b/openpnm/core/_base.py index <HASH>..<HASH> 100644 --- a/openpnm/core/_base.py +++ b/openpnm/core/_base.py @@ -715,18 +715,19 @@ class Base(dict): # All objs are present and array found on all objs try: W = max([a.shape[1] for a in arrs]) #...
slightly more robust, fixes json test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ def read(fname): setup( name='django-userprofiles', - version='0.2', + version='0.3', description='Registration, e-mail verifications and profiles.', long_description=read('README.rst'), ...
bumped version: <I>
py
diff --git a/test_autolens/unit/mock/data/mock_mask.py b/test_autolens/unit/mock/data/mock_mask.py index <HASH>..<HASH> 100644 --- a/test_autolens/unit/mock/data/mock_mask.py +++ b/test_autolens/unit/mock/data/mock_mask.py @@ -9,7 +9,7 @@ from autoarray.util import mask_util class MockMask(aa.ScaledSubMask): def ...
Small refactor on Mask class inheritance
py
diff --git a/salt/utils/pydsl.py b/salt/utils/pydsl.py index <HASH>..<HASH> 100644 --- a/salt/utils/pydsl.py +++ b/salt/utils/pydsl.py @@ -93,7 +93,7 @@ from salt.state import HighState from salt._compat import string_types -REQUISITES = set('require watch use require_in watch_in use_in'.split()) +REQUISITES = set...
Enable prereq and prereq_in in pydsl
py
diff --git a/jobstamps/jobstamp.py b/jobstamps/jobstamp.py index <HASH>..<HASH> 100644 --- a/jobstamps/jobstamp.py +++ b/jobstamps/jobstamp.py @@ -218,12 +218,15 @@ def run(func, *args, **kwargs): """date, re-running {1}""".format(trigger, func.__n...
Don't write stamp when JOBSTAMPS_DISABLED is set
py
diff --git a/juicer/juicer/Juicer.py b/juicer/juicer/Juicer.py index <HASH>..<HASH> 100644 --- a/juicer/juicer/Juicer.py +++ b/juicer/juicer/Juicer.py @@ -355,7 +355,11 @@ class Juicer(object): env_re = re.compile('.*-%s' % cart_dest) cart = juicer.common.Cart.Cart(cart_name) - pkg_list = jui...
cleanly exit if input manifest is missing for #<I>
py
diff --git a/tests/unit/test_dispatcher.py b/tests/unit/test_dispatcher.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_dispatcher.py +++ b/tests/unit/test_dispatcher.py @@ -47,11 +47,8 @@ def setup_aliases(monkeypatch): @pytest.fixture() def dispatcher(monkeypatch): - def return_fake_bot_id(): - ret...
Uniform dispatcher test fixture Switch mock dispatcher._get_bot_id() to work like mock dispatcher._get_bot_name().
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -202,8 +202,10 @@ class TestFilters(unittest.TestCase): logging.debug(pretty_json(data.content)) self.assertEqual(data.status_code, 200) - def test_filter_note_like(self,): - ...
#<I>: test filter NOT LIKE OK
py
diff --git a/ccmlib/node.py b/ccmlib/node.py index <HASH>..<HASH> 100644 --- a/ccmlib/node.py +++ b/ccmlib/node.py @@ -6,7 +6,6 @@ import glob import itertools import os import re -import shlex import shutil import signal import stat @@ -803,7 +802,7 @@ class Node(object): for sstablefile in sstablefil...
removed platform-dependent dependency shlex from ccmlib/node.py
py
diff --git a/s3backup/main.py b/s3backup/main.py index <HASH>..<HASH> 100644 --- a/s3backup/main.py +++ b/s3backup/main.py @@ -47,7 +47,8 @@ def perform_sync(s3_client, local_client): all_keys = set(keys1).union(set(keys2)) for key in all_keys: - s3_timestamp = s3_client.get_object_metadata(key)['tim...
Dont break when timestamp is not available
py
diff --git a/alot/helper.py b/alot/helper.py index <HASH>..<HASH> 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -5,7 +5,6 @@ from datetime import timedelta from datetime import datetime from collections import deque -from string import strip import subprocess import shlex import email @@ -179,7 +178,9 @@ de...
fix issue with empty authors strings helper.shorten_authors_string was not able to deal with nonempty whitespaces only as author's realnames. cf issue #<I>.
py
diff --git a/safe/postprocessors/minimum_needs_postprocessor.py b/safe/postprocessors/minimum_needs_postprocessor.py index <HASH>..<HASH> 100644 --- a/safe/postprocessors/minimum_needs_postprocessor.py +++ b/safe/postprocessors/minimum_needs_postprocessor.py @@ -58,7 +58,10 @@ class MinimumNeedsPostprocessor(AbstractPo...
gracefully recover from #<I>
py
diff --git a/pyathena/sqlalchemy_athena.py b/pyathena/sqlalchemy_athena.py index <HASH>..<HASH> 100644 --- a/pyathena/sqlalchemy_athena.py +++ b/pyathena/sqlalchemy_athena.py @@ -545,7 +545,7 @@ class AthenaDialect(DefaultDialect): ), ] - _connect_options = dict() + _connect_options = dict() # ty...
Fix Need type annotation for "_connect_options" (hint: "_connect_options: Dict[<type>, <type>] = ...")
py
diff --git a/gwpy/timeseries/tests/test_core.py b/gwpy/timeseries/tests/test_core.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/tests/test_core.py +++ b/gwpy/timeseries/tests/test_core.py @@ -174,6 +174,7 @@ class TestTimeSeriesBase(_TestSeries): assert b.dt == 1/128. * units.s assert shares_me...
gwpy.timeseries: added missing import protection
py
diff --git a/Lib/fontParts/nonelab/glyph.py b/Lib/fontParts/nonelab/glyph.py index <HASH>..<HASH> 100644 --- a/Lib/fontParts/nonelab/glyph.py +++ b/Lib/fontParts/nonelab/glyph.py @@ -189,7 +189,7 @@ class RGlyph(RBaseObject, BaseGlyph): layerName = name glyphName = self.name font = self.font ...
font.getLayer is a method, not a dict.
py
diff --git a/flask_peewee/admin.py b/flask_peewee/admin.py index <HASH>..<HASH> 100644 --- a/flask_peewee/admin.py +++ b/flask_peewee/admin.py @@ -54,9 +54,6 @@ class ModelAdmin(object): delete_collect_objects = True delete_recursive = True - # TODO: implement these - search_fields = None # fields to ...
Redundant considering you can perform more powerful search using simple filters
py
diff --git a/addok/helpers/text.py b/addok/helpers/text.py index <HASH>..<HASH> 100644 --- a/addok/helpers/text.py +++ b/addok/helpers/text.py @@ -8,6 +8,8 @@ from addok.db import DB from addok.helpers import keys, yielder from addok.helpers.index import token_frequency +import editdistance + PATTERN = re.compile(...
add some levenshtein distance in scoring
py
diff --git a/django_docker_helpers/config/__init__.py b/django_docker_helpers/config/__init__.py index <HASH>..<HASH> 100644 --- a/django_docker_helpers/config/__init__.py +++ b/django_docker_helpers/config/__init__.py @@ -46,6 +46,16 @@ class ConfigLoader: 'uncolor': '\033[0m', } + # useful ...
added call method to ConfigLoader
py
diff --git a/pyaxiom/netcdf/sensors/timeseries.py b/pyaxiom/netcdf/sensors/timeseries.py index <HASH>..<HASH> 100644 --- a/pyaxiom/netcdf/sensors/timeseries.py +++ b/pyaxiom/netcdf/sensors/timeseries.py @@ -273,7 +273,6 @@ class TimeSeries(object): save_mask = verticals.mask verticals.mask = F...
Fix duplicate line that should only be in the if below it
py
diff --git a/pyqode/core/editor.py b/pyqode/core/editor.py index <HASH>..<HASH> 100644 --- a/pyqode/core/editor.py +++ b/pyqode/core/editor.py @@ -994,7 +994,7 @@ class QCodeEdit(QtGui.QPlainTextEdit): else: tc.setPosition(p) self.setTextCursor(tc) - self.verticalScrollBar().set_va...
Fix error due to recent renaming
py
diff --git a/django_mako_plus/__init__.py b/django_mako_plus/__init__.py index <HASH>..<HASH> 100644 --- a/django_mako_plus/__init__.py +++ b/django_mako_plus/__init__.py @@ -1 +1 @@ -__version__ = '2.2.6' +__version__ = '2.2.7'
fixed a small bug in todays earlier release
py
diff --git a/bqplot/marks.py b/bqplot/marks.py index <HASH>..<HASH> 100644 --- a/bqplot/marks.py +++ b/bqplot/marks.py @@ -36,7 +36,7 @@ Marks from IPython.html.widgets import Widget, DOMWidget, CallbackDispatcher, Color from IPython.utils.traitlets import (Int, Unicode, List, Enum, Dict, Bool, ...
Validate that scales is a dictionary of scales
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -16,12 +16,8 @@ def main(): extras_require = {'machine': ['pytz', 'tzlocal', 'tweepy', 'ndex2', 'pyyaml', 'click'], - # Assemblers - ...
In setup.py's extras_require section: * Removed dependencies already covered as standard dependencies * Consolidated bel and ndex dependency categories * Depend on jnius-indra instead of pyjnius
py
diff --git a/looper/models.py b/looper/models.py index <HASH>..<HASH> 100644 --- a/looper/models.py +++ b/looper/models.py @@ -3110,6 +3110,10 @@ def _import_sample_subtype(pipeline_filepath, subtype_name=None): """ base_type = Sample + _, ext = _os.path.splitext(pipeline_filepath) + if ext != ".py": ...
only attempt import of Python pipelines; fix #<I>
py
diff --git a/bin/init_model.py b/bin/init_model.py index <HASH>..<HASH> 100644 --- a/bin/init_model.py +++ b/bin/init_model.py @@ -46,7 +46,10 @@ def _read_clusters(loc): cluster, word, freq = line.split() except ValueError: continue - clusters[word] = cluster + # If the...
* Exclude clusterings for words only seen 1 or 2 times, as their clusters are unreliable
py
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/tests/test_mainwindow.py +++ b/spyder/app/tests/test_mainwindow.py @@ -1835,6 +1835,7 @@ def test_edidorstack_open_switcher_dlg(main_window, tmpdir): assert editorstack.switcher_dlg i...
Asser that the switcher is visible in the new tests
py
diff --git a/django_mailbox/transports/generic.py b/django_mailbox/transports/generic.py index <HASH>..<HASH> 100644 --- a/django_mailbox/transports/generic.py +++ b/django_mailbox/transports/generic.py @@ -1,4 +1,5 @@ import sys +import six from .base import EmailTransport @@ -9,9 +10,12 @@ class GenericFileMail...
possible fix for python3 maildir issue
py
diff --git a/ibis/expr/operations/relations.py b/ibis/expr/operations/relations.py index <HASH>..<HASH> 100644 --- a/ibis/expr/operations/relations.py +++ b/ibis/expr/operations/relations.py @@ -758,15 +758,15 @@ class ExistsSubquery(Value): output_dtype = dt.boolean output_shape = rlz.Shape.COLUMNAR - o...
fix(api): make ExistSubquery and NotExistsSubquery pure boolean operations Fix the data model for these operations by remove their use of `ExistsExpr`.
py
diff --git a/python/bigdl/dllib/optim/optimizer.py b/python/bigdl/dllib/optim/optimizer.py index <HASH>..<HASH> 100644 --- a/python/bigdl/dllib/optim/optimizer.py +++ b/python/bigdl/dllib/optim/optimizer.py @@ -363,7 +363,7 @@ class Optimizer(JavaValue): :param model: the neural net model - :param tra...
update some doc (#<I>)
py
diff --git a/murmurhash/about.py b/murmurhash/about.py index <HASH>..<HASH> 100644 --- a/murmurhash/about.py +++ b/murmurhash/about.py @@ -1,5 +1,5 @@ __title__ = "murmurhash" -__version__ = "1.0.7" +__version__ = "1.0.8" __summary__ = "Cython bindings for MurmurHash" __uri__ = "https://github.com/explosion/murmurha...
Set version to <I> (#<I>)
py
diff --git a/server.py b/server.py index <HASH>..<HASH> 100644 --- a/server.py +++ b/server.py @@ -84,7 +84,7 @@ class WebSocketsHandler(SocketServer.StreamRequestHandler): def setup(self): global clients SocketServer.StreamRequestHandler.setup(self) - print 'websocket connection establish...
BugFix, old style missed parenthesis on prints.
py
diff --git a/ebclient/eb_create_uo.py b/ebclient/eb_create_uo.py index <HASH>..<HASH> 100644 --- a/ebclient/eb_create_uo.py +++ b/ebclient/eb_create_uo.py @@ -412,7 +412,7 @@ class TemplateProcessor(object): offset = self.template['flagoffset']/8 # comm keys provided? - bytes_transform(self.t...
setting flags - fixed, result was not taken into account
py
diff --git a/lib/elements/bfe_fulltext.py b/lib/elements/bfe_fulltext.py index <HASH>..<HASH> 100644 --- a/lib/elements/bfe_fulltext.py +++ b/lib/elements/bfe_fulltext.py @@ -113,7 +113,8 @@ def format(bfo, style, separator='; ', show_icons='no'): # When exported to text (eg. in WebAlert emails) we do not want t...
BibFormat: fix bfe_fulltext empty output * Do not produce extraneous `empty' output lines in bfe_fulltext for records that do not have fulltext. This fixes the HTML brief format for e.g. Books.
py
diff --git a/qtpy/uic.py b/qtpy/uic.py index <HASH>..<HASH> 100644 --- a/qtpy/uic.py +++ b/qtpy/uic.py @@ -3,7 +3,6 @@ import os from . import PYSIDE, PYQT4, PYQT5 from .QtWidgets import QComboBox -__all__ = ['loadUi'] if PYQT5: @@ -15,6 +14,8 @@ elif PYQT4: elif PYSIDE: + __all__ = ['loadUi'] + #...
uic: Make loadUi the only exported symbol in PySide
py
diff --git a/tests/profiles/googlefonts_test.py b/tests/profiles/googlefonts_test.py index <HASH>..<HASH> 100644 --- a/tests/profiles/googlefonts_test.py +++ b/tests/profiles/googlefonts_test.py @@ -594,6 +594,9 @@ def test_condition__registered_vendor_ids(): print('As of July 2018, "MLAG": "Michael LaGattuta" mus...
update code-test for vendor-id to ensure "GOOG": "Google" is listed. (issue #<I>)
py
diff --git a/conftest.py b/conftest.py index <HASH>..<HASH> 100644 --- a/conftest.py +++ b/conftest.py @@ -135,3 +135,25 @@ def cleanup_testfn(): os.remove(path) elif os.path.isdir(path): shutil.rmtree(path) + + +# from pytest-dev/pytest#363 +@pytest.fixture(scope="session") +def monkeysession(re...
Suppress path mangling when running tests. Ref pypa/distutils#<I>.
py
diff --git a/ella/core/templatetags/pagination.py b/ella/core/templatetags/pagination.py index <HASH>..<HASH> 100644 --- a/ella/core/templatetags/pagination.py +++ b/ella/core/templatetags/pagination.py @@ -35,7 +35,7 @@ def paginator(context, adjacent_pages=2): if 'request' in context: get = context['req...
include all querystring when paginating, not just 'using' Thanks @cooncesean
py
diff --git a/nomenclate/version.py b/nomenclate/version.py index <HASH>..<HASH> 100644 --- a/nomenclate/version.py +++ b/nomenclate/version.py @@ -1 +1 @@ -__version__ = '2.4.3' +__version__ = '2.4.4'
Adding new tag to try to force CircleCI to build.
py
diff --git a/src/you_get/common.py b/src/you_get/common.py index <HASH>..<HASH> 100644 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -18,6 +18,7 @@ force = False player = None sogou_proxy = None sogou_env = None +cookies_txt = None fake_headers = { 'Accept': 'text/html,application/xhtml+xml,appl...
add global variable cookies_txt Test case does not enter via script_main. Without this definition test cases will fail, although the new feature works correctly.
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100755 --- a/test.py +++ b/test.py @@ -25,6 +25,8 @@ os.environ['PYTHONPATH'] = top_dir status = 0 test_dir = os.path.join(top_dir, 'atfork', 'tests') for test_file in os.listdir(test_dir): + if not test_file.endswith('.py'): + continue test_path = o...
Only run .py files as tests.
py
diff --git a/qiskit/aqua/algorithms/__init__.py b/qiskit/aqua/algorithms/__init__.py index <HASH>..<HASH> 100644 --- a/qiskit/aqua/algorithms/__init__.py +++ b/qiskit/aqua/algorithms/__init__.py @@ -15,7 +15,7 @@ """ algorithms package """ from .quantum_algorithm import QuantumAlgorithm -from .adaptive import VQE, ...
Move VQEAdapt to qiskit/chemistry/aqua_extensions This change is necessary since VQEAdapt depends on UCCSDAdapt which in turn depends on UCCSD which is part of the aqua_extensions module. If VQEAdapt were to stay within the qiskit.aqua module a cyclic dependency between qiskit.aqua and qiskit.chemistry would be introd...
py
diff --git a/sirmordred/config.py b/sirmordred/config.py index <HASH>..<HASH> 100644 --- a/sirmordred/config.py +++ b/sirmordred/config.py @@ -348,6 +348,12 @@ class Config(): "default": False, "type": bool, "description": "Enable GitLab merge requests menu...
[config] Load mattermost panels by the setup.cfg This code extends the setup.cfg to load mattermost panels on demand. When enabled (set to true), the attribute `mattermost` allows to load the corresponding panels. By default this attribute is disabled.
py
diff --git a/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py b/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py index <HASH>..<HASH> 100644 --- a/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py +++ b/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py @@ -295,7 +295,11 @@ class Az...
fixing docstring (#<I>)
py
diff --git a/MAVProxy/modules/lib/live_graph_ui.py b/MAVProxy/modules/lib/live_graph_ui.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/lib/live_graph_ui.py +++ b/MAVProxy/modules/lib/live_graph_ui.py @@ -106,9 +106,10 @@ class GraphFrame(wx.Frame): ymax = vhigh + 0.05*(vhigh-vlow) if ymin == ...
Live Graph UI: nicer scaling and formatting for y-axis
py
diff --git a/jaraco/util/string.py b/jaraco/util/string.py index <HASH>..<HASH> 100644 --- a/jaraco/util/string.py +++ b/jaraco/util/string.py @@ -7,6 +7,8 @@ import itertools import functools import textwrap +from . import six + from .functools import compose from .exceptions import throws_exception impo...
Made some progress toward native Python 3 support
py
diff --git a/flask_mongo_profiler/contrib/flask_admin/views/base.py b/flask_mongo_profiler/contrib/flask_admin/views/base.py index <HASH>..<HASH> 100644 --- a/flask_mongo_profiler/contrib/flask_admin/views/base.py +++ b/flask_mongo_profiler/contrib/flask_admin/views/base.py @@ -160,6 +160,11 @@ class RelationalSearchMi...
:wheelchair: Skip ID search if term isn't ObjectId
py
diff --git a/tests/test_modeling_tf_mt5.py b/tests/test_modeling_tf_mt5.py index <HASH>..<HASH> 100644 --- a/tests/test_modeling_tf_mt5.py +++ b/tests/test_modeling_tf_mt5.py @@ -53,4 +53,4 @@ class TFMT5ModelIntegrationTest(unittest.TestCase): mtf_score = -tf.math.reduce_sum(loss).numpy() EXPECTED_...
Adjust loss difference (#<I>)
py
diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -61,6 +61,9 @@ class Filters: create = create + me = create("Me", lambda _, m: bool(m.from_user and m.from_use...
Add Filters.me Useful to filter messages coming from the current running user. Does the same thing as Filters.user("me")
py
diff --git a/cobald_tests/decorator/test_standardiser.py b/cobald_tests/decorator/test_standardiser.py index <HASH>..<HASH> 100644 --- a/cobald_tests/decorator/test_standardiser.py +++ b/cobald_tests/decorator/test_standardiser.py @@ -29,14 +29,17 @@ class TestStandardiser(object): assert pool.dema...
testing transparent reset of Standardiser's target pool demand
py
diff --git a/ariba/clusters.py b/ariba/clusters.py index <HASH>..<HASH> 100644 --- a/ariba/clusters.py +++ b/ariba/clusters.py @@ -13,10 +13,10 @@ class Error (Exception): pass def _run_cluster(obj, verbose): if verbose: - print('Start running cluster', obj.name, 'in directory', obj.root_dir) + pr...
flush stdout so output is in the right order
py
diff --git a/hacking/validate.py b/hacking/validate.py index <HASH>..<HASH> 100644 --- a/hacking/validate.py +++ b/hacking/validate.py @@ -26,7 +26,7 @@ def validate_playbook(playbook): assert len(playbook['arguments']) == 40 assert 'hacking/test-playbook.yml' in playbook['file']['path'] assert len(playb...
Fixed integration tests. They didn't get updated after changing playbook completed to status. Change-Id: I<I>b6b<I>b<I>ea5f2ea<I>b<I>f0e<I>fa1
py
diff --git a/testing/conftest.py b/testing/conftest.py index <HASH>..<HASH> 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -51,14 +51,25 @@ def restore_settrace(monkeypatch): assert newtrace is None +@pytest.fixture(scope="session") +def _tmphome_path(tmpdir_factory): + return tmpdir_fact...
tests: tmphome: use tmpdir from testdir, if used (#<I>) And a single tmphome otherwise.
py
diff --git a/mapillary_tools/exif_write.py b/mapillary_tools/exif_write.py index <HASH>..<HASH> 100644 --- a/mapillary_tools/exif_write.py +++ b/mapillary_tools/exif_write.py @@ -69,7 +69,7 @@ class ExifEdit(object): def add_altitude(self, altitude, precision=100): """Add altitude (pre is the precision)...
fix: fixed bug where gps reference was written wrong to EXIF
py
diff --git a/wampy/transports/websocket/connection.py b/wampy/transports/websocket/connection.py index <HASH>..<HASH> 100644 --- a/wampy/transports/websocket/connection.py +++ b/wampy/transports/websocket/connection.py @@ -46,12 +46,13 @@ class WebSocket(Transport, ParseUrlMixin): return self def discon...
Fix for AttributeError: 'NoneType' object has no attribute 'shutdown'
py
diff --git a/inspire_dojson/hep/rules/bd5xx.py b/inspire_dojson/hep/rules/bd5xx.py index <HASH>..<HASH> 100644 --- a/inspire_dojson/hep/rules/bd5xx.py +++ b/inspire_dojson/hep/rules/bd5xx.py @@ -405,20 +405,17 @@ def _desy_bookkeeping2marc(self, key, value): Also populates the ``035`` MARC field through side eff...
hep2marc: refactor _desy_bookkeeping2marc rule
py
diff --git a/src/pybel/io.py b/src/pybel/io.py index <HASH>..<HASH> 100644 --- a/src/pybel/io.py +++ b/src/pybel/io.py @@ -275,15 +275,19 @@ def to_graphml(graph, output): nx.write_graphml(g, output) -def to_csv(graph, output): +def to_csv(graph, output, delimiter='\t', encoding='utf-8'): """Writes the gr...
Add more options to CSV output This is just a thin wrapper around a NetworkX method, so propagate the keyword arguments
py
diff --git a/docs/versionutils.py b/docs/versionutils.py index <HASH>..<HASH> 100644 --- a/docs/versionutils.py +++ b/docs/versionutils.py @@ -27,7 +27,8 @@ logger = logging.getLogger(__name__) translations_list = [ ('en', 'English'), - ('ja', 'Japanese') + ('ja_JP', 'Japanese'), + ('de_DE', 'German'),...
Add German translations to Qiskit Documentation (#<I>) Thanks to all the volunteers who helped in translating Qiskit Documentation to German 🎉
py
diff --git a/txaio/tx.py b/txaio/tx.py index <HASH>..<HASH> 100644 --- a/txaio/tx.py +++ b/txaio/tx.py @@ -198,7 +198,7 @@ class _LogObserver(object): def _acceptable_level(self, level): if self._levels is None: target_level = log_levels.index(_log_level) - self._levels = [self.to_...
off-by-one in Twisted->level mapper
py
diff --git a/cartoframes/dataobs.py b/cartoframes/dataobs.py index <HASH>..<HASH> 100644 --- a/cartoframes/dataobs.py +++ b/cartoframes/dataobs.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """Data Observatory utility functions""" # Country names are pegged to the following query:
specifies utf-8 encoding in header
py
diff --git a/test/test_serialize.py b/test/test_serialize.py index <HASH>..<HASH> 100644 --- a/test/test_serialize.py +++ b/test/test_serialize.py @@ -21,7 +21,11 @@ class TestSegment(object): for k, v in state.items(): print("k=%s v=%s type=%s" % (k, v, type(v))) byte_type = type(str(u' ...
Fixed tests for uuid type
py
diff --git a/salt/modules/groupadd.py b/salt/modules/groupadd.py index <HASH>..<HASH> 100644 --- a/salt/modules/groupadd.py +++ b/salt/modules/groupadd.py @@ -62,8 +62,8 @@ def chgid(name, gid): return True cmd = 'groupmod -g {0} {1}'.format(gid, name) __salt__['cmd.run'](cmd) - post_info = __salt...
Repair issue in chgid
py
diff --git a/colorlog/colorlog.py b/colorlog/colorlog.py index <HASH>..<HASH> 100644 --- a/colorlog/colorlog.py +++ b/colorlog/colorlog.py @@ -64,8 +64,8 @@ class ColoredFormatter(logging.Formatter): Intended to help in creating more readable logging output. """ - def __init__(self, fmt=None, datefmt=Non...
made it work with Python-<I>
py
diff --git a/holoviews/plotting/mpl/chart.py b/holoviews/plotting/mpl/chart.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/chart.py +++ b/holoviews/plotting/mpl/chart.py @@ -122,7 +122,7 @@ class CurvePlot(ChartPlot): if self.center_cyclic: self.peak_argmax = np.argmax(element...
Fixed syntax error introduced in mpl.ChartPlot
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -333,7 +333,7 @@ epub_copyright = copyright # The format is a list of tuples containing the path and title. #epub_pre_files = [] -# HTML files shat should be inserted after the pages created by sphinx. +# H...
docs: Fix simple typo, shat -> that There is a small typo in docs/conf.py. Should read `that` rather than `shat`.
py
diff --git a/pyamg/__init__.py b/pyamg/__init__.py index <HASH>..<HASH> 100644 --- a/pyamg/__init__.py +++ b/pyamg/__init__.py @@ -42,6 +42,10 @@ from .aggregation import smoothed_aggregation_solver, rootnode_solver from .gallery import demo from .blackbox import solve, solver, solver_configuration +__all__ = [__gi...
explicitly add imports to __all__
py
diff --git a/flask_uwsgi_websocket/websocket.py b/flask_uwsgi_websocket/websocket.py index <HASH>..<HASH> 100644 --- a/flask_uwsgi_websocket/websocket.py +++ b/flask_uwsgi_websocket/websocket.py @@ -95,7 +95,9 @@ class WebSocket(object): # constructing uwsgi arguments uwsgi_args = ' '.join(['--{0} {...
Don't hard-code path to uwsgi
py
diff --git a/tests/test_k8s_secret.py b/tests/test_k8s_secret.py index <HASH>..<HASH> 100644 --- a/tests/test_k8s_secret.py +++ b/tests/test_k8s_secret.py @@ -356,7 +356,7 @@ class K8sSecretTest(unittest.TestCase): secret = utils.create_secret(name=name) if utils.is_reachable(secret.config.api_host): ...
K8sSecret: unit tests pass
py
diff --git a/examples/map.py b/examples/map.py index <HASH>..<HASH> 100755 --- a/examples/map.py +++ b/examples/map.py @@ -23,7 +23,7 @@ try: from PIL import Image except ImportError: # PIL not in search path. Let's see if it can be found in the parent folder - sys.stderr.write("Module PIL/Image not found. PIL can...
Recommend Pillow instead of PIL library
py
diff --git a/bibliopixel/drivers/PiWS281X.py b/bibliopixel/drivers/PiWS281X.py index <HASH>..<HASH> 100644 --- a/bibliopixel/drivers/PiWS281X.py +++ b/bibliopixel/drivers/PiWS281X.py @@ -26,7 +26,7 @@ Install rpi_ws281x with the following shell commands: try: from neopixel import Adafruit_NeoPixel, Color as NeoCo...
Fix incorrect symbol in PiWS<I>X
py
diff --git a/cc_core/commons/templates.py b/cc_core/commons/templates.py index <HASH>..<HASH> 100644 --- a/cc_core/commons/templates.py +++ b/cc_core/commons/templates.py @@ -169,3 +169,22 @@ def _extract_template_keys(template_string, key_string, protected): .format(template_string, ke...
moved normalize_keys from faice to core
py
diff --git a/telemetry/telemetry/util/find_dependencies.py b/telemetry/telemetry/util/find_dependencies.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/util/find_dependencies.py +++ b/telemetry/telemetry/util/find_dependencies.py @@ -210,6 +210,12 @@ def ZipDependencies(paths, dependencies, options): gs...
Add Rietveld's upload.py to the standalone telemetry archive By adding upload.py to the archive, we can submit patches to telemetry without requiring a full depot_tools checkout. This helps ensure that the standalone zip really is sufficient for telemetry development. R=<EMAIL>, <EMAIL> BUG=<I> Review URL: <URL>
py
diff --git a/tests/test_game.py b/tests/test_game.py index <HASH>..<HASH> 100644 --- a/tests/test_game.py +++ b/tests/test_game.py @@ -203,5 +203,13 @@ class TestGame(unittest.TestCase): self.assertTrue((d1, False) in m4) self.assertTrue((d2, False) in m4) + g.board.add_left(d1) + + # ...
testing valid_moves() when the board ends are equal
py
diff --git a/vertex/test/test_sigma.py b/vertex/test/test_sigma.py index <HASH>..<HASH> 100644 --- a/vertex/test/test_sigma.py +++ b/vertex/test/test_sigma.py @@ -156,7 +156,7 @@ class BasicTransferTest(TestBase): def testOneSenderOneRecipient(self): - self.senderNexus.push(self.sfile, 'TEST->TEST', [re...
Minor fix to allow Vertex tests to pass on Win<I> platforms. Author: Vitorio Reviewer: glyph Fixes #<I> This is an extremely minor change which, while not suggested in the form of a diff, was extremely clearly specified in the ticket. The filenames previously chosen were ill-advised: "TEST->TEST" is not a valid fi...
py
diff --git a/src/rammbock/Rammbock.py b/src/rammbock/Rammbock.py index <HASH>..<HASH> 100755 --- a/src/rammbock/Rammbock.py +++ b/src/rammbock/Rammbock.py @@ -114,8 +114,16 @@ class Rammbock(object): return self._data def read_from_data(self, length): + length = int(length) message = "" ...
yet another refactoring to read_from_data
py
diff --git a/holoviews/core/data/pandas.py b/holoviews/core/data/pandas.py index <HASH>..<HASH> 100644 --- a/holoviews/core/data/pandas.py +++ b/holoviews/core/data/pandas.py @@ -175,7 +175,8 @@ class PandasInterface(Interface): for d, k in zip(dimensions, key): data[d.name] = k ...
Do not sort by default when concatenating pandas data (#<I>)
py
diff --git a/company/package/version.py b/company/package/version.py index <HASH>..<HASH> 100644 --- a/company/package/version.py +++ b/company/package/version.py @@ -1 +1,2 @@ -__version__ = '0.0.1' \ No newline at end of file +__version__ = '0.0.1' +
added newline to remove PEP8 warning.
py
diff --git a/jbopt/classic.py b/jbopt/classic.py index <HASH>..<HASH> 100644 --- a/jbopt/classic.py +++ b/jbopt/classic.py @@ -125,7 +125,7 @@ def classical(transform, loglikelihood, parameter_names, prior, return ret -def onebyone(transform, loglikelihood, parameter_names, start = 0.5, ftol=0.1, disp=0, nsteps=4...
prior missing in onebyone as well
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -93,7 +93,7 @@ master_doc = 'index' # General information about the project. project = u'salt-cloud' -copyright = u'2012, SaltStack, Inc.' +copyright = u'2012 - 2013, Salt Stack, Inc.' # The version info for...
Update copyright date in doc/conf.py
py
diff --git a/dipper/sources/MGI.py b/dipper/sources/MGI.py index <HASH>..<HASH> 100644 --- a/dipper/sources/MGI.py +++ b/dipper/sources/MGI.py @@ -488,17 +488,16 @@ SELECT r._relationship_key as rel_key, break # now, loop through the hash and add the genotypes as individuals - # ...
add MGI label as genotype label, add monarch label as synonym
py
diff --git a/autograd/numpy/numpy_grads.py b/autograd/numpy/numpy_grads.py index <HASH>..<HASH> 100644 --- a/autograd/numpy/numpy_grads.py +++ b/autograd/numpy/numpy_grads.py @@ -387,7 +387,7 @@ anp.make_diagonal.defgrad( def unbroadcast(ans, x, result): # x is the argument that we're differentiating with respect...
Minor fix due to removal of FloatNode
py
diff --git a/pyecore/resources/json.py b/pyecore/resources/json.py index <HASH>..<HASH> 100644 --- a/pyecore/resources/json.py +++ b/pyecore/resources/json.py @@ -44,7 +44,7 @@ class JsonResource(Resource): def _to_ref_from_obj(self, obj): eclass = obj.eClass - uri = '{}{}'.format(eclass.ePackage...
Fix issue with JSON serializer when multiples subpackages are used The 'eClass' relationship, serialized in the form of the root 'EPackage' uri with the 'EClass' uri fragment were badly formed.
py
diff --git a/avatar/models.py b/avatar/models.py index <HASH>..<HASH> 100644 --- a/avatar/models.py +++ b/avatar/models.py @@ -33,7 +33,10 @@ class Avatar(models.Model): return _(u'Avatar for %s') % self.user def save(self, force_insert=False, force_update=False): - if self.primary and AVATAR...
special case for AVATAR_MAX_AVATARS_PER_USER == 1: try to work always on the same db row, by re-using the id.
py
diff --git a/modernrpc/tests/test_jsonrpc_errors.py b/modernrpc/tests/test_jsonrpc_errors.py index <HASH>..<HASH> 100644 --- a/modernrpc/tests/test_jsonrpc_errors.py +++ b/modernrpc/tests/test_jsonrpc_errors.py @@ -82,22 +82,6 @@ def test_jsonrpc_invalid_request_3(live_server): assert RPC_INVALID_REQUEST == respon...
Drop useless test Missing 'id' in request is not an error anymore, it's a correct notification request
py
diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index <HASH>..<HASH> 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -17,7 +17,7 @@ class TabCompleteExample(cmd2.Cmd): """ Example cmd2 application where we a base command which has a couple subcommand...
Matched changes in the python3 branch.
py
diff --git a/alchemist/test.py b/alchemist/test.py index <HASH>..<HASH> 100644 --- a/alchemist/test.py +++ b/alchemist/test.py @@ -9,6 +9,7 @@ def settings(app, **kwargs): Allows override with the keyword arguments. """ + # Save the current application config to restore. _config = dict(app.config)
Additional blank line to follow PEP8.
py
diff --git a/salt/modules/boto_vpc.py b/salt/modules/boto_vpc.py index <HASH>..<HASH> 100644 --- a/salt/modules/boto_vpc.py +++ b/salt/modules/boto_vpc.py @@ -1420,11 +1420,11 @@ def delete_nat_gateway(nat_gateway_id, # wait for deleting nat gateway to finish prior to attempt to release elastic ips if...
fixed a bug in retry mechanism.
py
diff --git a/pdfconduit/__init__.py b/pdfconduit/__init__.py index <HASH>..<HASH> 100644 --- a/pdfconduit/__init__.py +++ b/pdfconduit/__init__.py @@ -1,6 +1,6 @@ __all__ = ["upscale", "rotate", "Encrypt", "Merge", "Watermark", "Label", "WatermarkAdd", "slicer", "GUI"] -__version__ = '1.1.3' +__version__ =...
Updated to version <I>
py
diff --git a/modules/camera.py b/modules/camera.py index <HASH>..<HASH> 100644 --- a/modules/camera.py +++ b/modules/camera.py @@ -20,7 +20,10 @@ def mkdir_p(dir): if os.path.isdir(dir): return mkdir_p(os.path.dirname(dir)) - os.mkdir(dir) + try: + os.mkdir(dir) + except Exception: + ...
fixed mkdir race with scan threads
py
diff --git a/photutils/detection/core.py b/photutils/detection/core.py index <HASH>..<HASH> 100644 --- a/photutils/detection/core.py +++ b/photutils/detection/core.py @@ -3,10 +3,12 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) +import warnings impo...
Warning if filter kernel is not normalized
py
diff --git a/py/testdir_release/c2/test_c2_rel.py b/py/testdir_release/c2/test_c2_rel.py index <HASH>..<HASH> 100644 --- a/py/testdir_release/c2/test_c2_rel.py +++ b/py/testdir_release/c2/test_c2_rel.py @@ -3,7 +3,7 @@ sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_import as h2i, h2o_glm, h2o_common...
just parse, no GLM
py
diff --git a/openquake/commands/engine.py b/openquake/commands/engine.py index <HASH>..<HASH> 100644 --- a/openquake/commands/engine.py +++ b/openquake/commands/engine.py @@ -34,11 +34,10 @@ HAZARD_CALCULATION_ARG = "--hazard-calculation-id" MISSING_HAZARD_MSG = "Please specify '%s=<id>'" % HAZARD_CALCULATION_ARG ...
Removed ownership check on get_job_id [skip hazardlib][demos] Former-commit-id: <I>c1ce8ed6ae<I>dfcc<I>fbf<I>
py