diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -132,15 +132,13 @@ class MyInstallLib(install_lib.install_lib): exclude = set() shutil.rmtree(dest, ignore_errors=True) shutil.copytree(directory, dest) - #...
[packaging] attempt to skip byte-compilation for tests files This doesn't occurs when using bare distutils but does when using setuptools (eg from easy_install/pip). As setuptools seems broken on my box, I've not been able to test that. (Hopefuly) closes #<I>
py
diff --git a/samples/WhoIsIAm.py b/samples/WhoIsIAm.py index <HASH>..<HASH> 100755 --- a/samples/WhoIsIAm.py +++ b/samples/WhoIsIAm.py @@ -34,7 +34,6 @@ this_console = None # WhoIsIAmApplication # -@bacpypes_debugging class WhoIsIAmApplication(BIPSimpleApplication): def __init__(self, *args): @@ -85,11 +8...
minor changes to allow these to continue to work in py<I>
py
diff --git a/schema/component.py b/schema/component.py index <HASH>..<HASH> 100644 --- a/schema/component.py +++ b/schema/component.py @@ -65,11 +65,15 @@ class Damageable(Component): return old_hp - self.hp + def alive(self): + return self.hp > self.min + def __str__(self): damagea...
Add helper method for determining whether or not a Damageable is alive.
py
diff --git a/GPyOpt/core/bo.py b/GPyOpt/core/bo.py index <HASH>..<HASH> 100644 --- a/GPyOpt/core/bo.py +++ b/GPyOpt/core/bo.py @@ -129,6 +129,7 @@ class BO(object): """ self.model.set_XY(self.X,(self.Y-self.Y.mean())/self.Y.std()) if (self.num_acquisitions%self.model_optimize_interval...
fixed a bug where previous optimization runs (on smaller sets of data) could interfere with optimization
py
diff --git a/client/sources/doctest/__init__.py b/client/sources/doctest/__init__.py index <HASH>..<HASH> 100644 --- a/client/sources/doctest/__init__.py +++ b/client/sources/doctest/__init__.py @@ -53,10 +53,18 @@ def _load_tests(file, module, assign): return tests def _load_test(file, module, name, assign): -...
Add support for doctest names with dots.
py
diff --git a/hwt/hdl/types/structValBase.py b/hwt/hdl/types/structValBase.py index <HASH>..<HASH> 100644 --- a/hwt/hdl/types/structValBase.py +++ b/hwt/hdl/types/structValBase.py @@ -1,5 +1,6 @@ from hwt.hdl.value import Value, areValues from hwt.serializer.generic.indent import getIndent +from hwt.synthesizer.rtlLev...
StructValBase.from_py: support for RtlSignal as members
py
diff --git a/src/transformers/hf_api.py b/src/transformers/hf_api.py index <HASH>..<HASH> 100644 --- a/src/transformers/hf_api.py +++ b/src/transformers/hf_api.py @@ -78,7 +78,7 @@ class ModelInfo: author: Optional[str] = None, downloads: Optional[int] = None, tags: List[str] = [], - s...
[hf_api] slightly more doc
py
diff --git a/asammdf/mdf_v4.py b/asammdf/mdf_v4.py index <HASH>..<HASH> 100644 --- a/asammdf/mdf_v4.py +++ b/asammdf/mdf_v4.py @@ -1728,6 +1728,7 @@ class MDF4(object): size = size >> 3 next_byte_aligned_position = parent_start_offset + size + ...
possible fix for issue #<I>
py
diff --git a/interest/middleware.py b/interest/middleware.py index <HASH>..<HASH> 100644 --- a/interest/middleware.py +++ b/interest/middleware.py @@ -1,7 +1,6 @@ import asyncio import inspect from .backend import http -from .endpoint import Endpoint from .helpers import Chain, Config, OrderedMetaclass, STICKER, na...
removed static dep upon endpoint from middleware
py
diff --git a/tests/test_doctests.py b/tests/test_doctests.py index <HASH>..<HASH> 100644 --- a/tests/test_doctests.py +++ b/tests/test_doctests.py @@ -41,7 +41,7 @@ def fix_doctests(suite): def register_doctests(mod): if isinstance(mod, basestring): - mod = __import__(mod, fromlist=['.']) + mod = ...
__import__ fromlist semantics are ever so slightly different on Python 3
py
diff --git a/backend/__32bit.py b/backend/__32bit.py index <HASH>..<HASH> 100644 --- a/backend/__32bit.py +++ b/backend/__32bit.py @@ -574,7 +574,8 @@ def _ne32(ins): op1, op2 = tuple(ins.quad[2:]) output = _32bit_oper(op1, op2) output.append('call __EQ32') - output.append('cpl') # Negates the result...
bugfix: NEQ<I> should accept any integer If the return value where not 0xFF for true (e.g. 1) in the _EQ<I> routine, this one might fail. Negate the result correctly.
py
diff --git a/swiftwind/transactions/tests.py b/swiftwind/transactions/tests.py index <HASH>..<HASH> 100644 --- a/swiftwind/transactions/tests.py +++ b/swiftwind/transactions/tests.py @@ -453,6 +453,15 @@ class StatementLineResourceTestCase(TestCase): self.assertEqual(len(result.row_errors()), 1) self....
Adding test for import with no ammount column
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,6 +48,8 @@ copyright = u'2013, Duncan Macleod' # The short X.Y version. version = gwpy_version.version.split('-', 1)[0] +if version == gwpy_version.git_id: + version = version[:6] # The full version...
docs: fix to git hash version in HTML
py
diff --git a/mtp_common/auth/models.py b/mtp_common/auth/models.py index <HASH>..<HASH> 100644 --- a/mtp_common/auth/models.py +++ b/mtp_common/auth/models.py @@ -53,6 +53,16 @@ class MojUser: self._full_name = ' '.join(filter(None, name_parts)) return self._full_name + def get_initials(self)...
Add method to user class to get their intials, where available
py
diff --git a/bugwarrior/config.py b/bugwarrior/config.py index <HASH>..<HASH> 100644 --- a/bugwarrior/config.py +++ b/bugwarrior/config.py @@ -254,6 +254,9 @@ def get_data_path(config, main_section): env = dict(os.environ) env['TASKRC'] = taskrc + if not os.path.isfile(taskrc): + raise IOError('Un...
Check if taskrc file exists before trying to load config This could lead to a lock when trying to run `task _show`
py
diff --git a/pypsa/io.py b/pypsa/io.py index <HASH>..<HASH> 100644 --- a/pypsa/io.py +++ b/pypsa/io.py @@ -766,9 +766,9 @@ def import_series_from_dataframe(network, dataframe, cls_name, attr): dataframe = dataframe.reindex(network.snapshots, fill_value=default) if not attr_series.static: - pnl[at...
io.py Resolve FutureWarning <I> Index.__or__ operating as a set operation is deprecated
py
diff --git a/salt/modules/status.py b/salt/modules/status.py index <HASH>..<HASH> 100644 --- a/salt/modules/status.py +++ b/salt/modules/status.py @@ -161,7 +161,7 @@ def uptime(): if res['retcode'] > 0: raise CommandExecutionError('The boot_time kstat was not found.') utc_time = datetime...
status.uptime - support python pre <I> as per damon-atkins
py
diff --git a/fluent_blogs/models/query.py b/fluent_blogs/models/query.py index <HASH>..<HASH> 100644 --- a/fluent_blogs/models/query.py +++ b/fluent_blogs/models/query.py @@ -61,7 +61,7 @@ def query_entries(queryset=None, Query the entries using a set of predefined filters. This interface is mainly used by th...
Prevent additional SQL query by 'if not queryset' check.
py
diff --git a/bids/layout/layout.py b/bids/layout/layout.py index <HASH>..<HASH> 100644 --- a/bids/layout/layout.py +++ b/bids/layout/layout.py @@ -156,7 +156,7 @@ class BIDSLayout(Layout): **kwargs) if index_metadata: - self.metadata_index = MetadataIndex(...
force explicit index initialization before metadata search works
py
diff --git a/glue/gpstime.py b/glue/gpstime.py index <HASH>..<HASH> 100644 --- a/glue/gpstime.py +++ b/glue/gpstime.py @@ -1,4 +1,6 @@ """ +A Python implementation of GPS related time conversions. + -------------------------------------------------------------------------------- Copyright 2002 by Bud P. Bruegger, Si...
added a description at the top of the file
py
diff --git a/putiopy.py b/putiopy.py index <HASH>..<HASH> 100644 --- a/putiopy.py +++ b/putiopy.py @@ -16,6 +16,7 @@ from datetime import datetime import tus import requests +from requests.exceptions import Timeout from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry ...
adding retry in case of intermittent connection
py
diff --git a/wandb/__init__.py b/wandb/__init__.py index <HASH>..<HASH> 100644 --- a/wandb/__init__.py +++ b/wandb/__init__.py @@ -506,14 +506,14 @@ def uninit(): run = config = None watch_called = False # UNDO patches - for mod in patched["tensorboard"] + patched["keras"]: + for mod in patched["te...
Dont unpatch keras
py
diff --git a/example_project/provider_app/settings.py b/example_project/provider_app/settings.py index <HASH>..<HASH> 100644 --- a/example_project/provider_app/settings.py +++ b/example_project/provider_app/settings.py @@ -5,7 +5,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = 'c14d549c574e4d...
Turn debug = True in example project.
py
diff --git a/atx/adbkit/mixins.py b/atx/adbkit/mixins.py index <HASH>..<HASH> 100644 --- a/atx/adbkit/mixins.py +++ b/atx/adbkit/mixins.py @@ -34,7 +34,7 @@ class RotationWatcherMixin(object): if package_name not in out: apkpath = os.path.join(__dir__, '..', 'vendor', 'RotationWatcher.apk') ...
adb install doesn’t accept parameters like ‘adb install -rt some.apk’, but ‘adb install -r -t some.apk’ just works fine. fix NetEaseGame/AutomatorX#<I> (#<I>)
py
diff --git a/binance/websockets.py b/binance/websockets.py index <HASH>..<HASH> 100644 --- a/binance/websockets.py +++ b/binance/websockets.py @@ -328,10 +328,11 @@ class BinanceSocketManager(threading.Thread): pass def close(self): - """Stop the websocket manager and close connections + ...
Change close to close socket connections and not stop reactor
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1038,12 +1038,13 @@ class Kconfig(object): 'strerror', and 'filename' are available). Note that IOError can be caught as OSError on Python 3. - filename: + filename (defau...
Clarify that load_config()'s filename argument defaults to None Had missed the '(default: None)', and it doesn't hurt to point it out in the description either. Point out that filename=None is the default in the write_config() 'filename' description too, though it already had the '(default: None)'.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,6 @@ setup(name='parvusdb', install_requires=[ 'python-igraph', 'hy', - 'Cython', ], - ext_modules=cythonize(extensions), +# ext_modules=cythonize(extensions), ...
commented out the cythonize command in setup
py
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/engine/db/models.py +++ b/openquake/engine/db/models.py @@ -381,8 +381,7 @@ class OqJob(djm.Model): # ordering no ruptures are generated and the test # qa_tests/hazard/disagg/...
lon and lat are now truncated to 5 digits
py
diff --git a/buildbot/process/builder.py b/buildbot/process/builder.py index <HASH>..<HASH> 100644 --- a/buildbot/process/builder.py +++ b/buildbot/process/builder.py @@ -403,9 +403,9 @@ class Builder(pb.Referenceable): if setup['factory'] != self.buildFactory: # compare objects diffs.append('fact...
(fixes #<I>) patch to print the correct order
py
diff --git a/hydpy/models/hland/hland_model.py b/hydpy/models/hland/hland_model.py index <HASH>..<HASH> 100644 --- a/hydpy/models/hland/hland_model.py +++ b/hydpy/models/hland/hland_model.py @@ -369,6 +369,7 @@ def calc_epc_v1(self): >>> from hydpy.models.hland import * >>> parameterstep('1d') + ...
add a missing simulationstep definition to a doctest of HydPy-H-Land. Very strange: the doctest failed only when using Python <I>.
py
diff --git a/scot/plotting.py b/scot/plotting.py index <HASH>..<HASH> 100644 --- a/scot/plotting.py +++ b/scot/plotting.py @@ -146,7 +146,7 @@ def plot_connectivity_spectrum(a, fs=2, freq_range=(-np.inf, np.inf), topo=None, axes[0][j].xaxis.tick_top() axes[-1][j].xaxis.tick_bottom() - fig.text(0....
Added units to plot axes Former-commit-id: <I>c<I>dd<I>d2dd5b<I>b<I>ad0d<I>f1
py
diff --git a/client/speaker.py b/client/speaker.py index <HASH>..<HASH> 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -100,7 +100,8 @@ class eSpeakSpeaker(AbstractSpeaker): cmd = ['espeak', '-v', voice, '-p', pitch_adjustment, '-s', words_per_minu...
Actually include a phrase in eSpeakSpeaker.say()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ setup( author="Junpei Kawamoto", author_email="kawamoto.junpei@gmail.com", description="Repeated Improvement Analysis Algorithm for Review graph mining project", - url="https://github.com/rgmin...
Fixed the url in setup.py.
py
diff --git a/src/__init__.py b/src/__init__.py index <HASH>..<HASH> 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,3 +1,3 @@ __author__ = 'rolandh' -JSON_DUMPS_ARGS = {"ident": 4, "sort_keys": True} \ No newline at end of file +JSON_DUMPS_ARGS = {"indent": 4, "sort_keys": True} \ No newline at end of file
fixed typo in JSON_DUMPS_ARGS (ident instead of indent)
py
diff --git a/datacache/database_helpers.py b/datacache/database_helpers.py index <HASH>..<HASH> 100644 --- a/datacache/database_helpers.py +++ b/datacache/database_helpers.py @@ -253,7 +253,7 @@ def db_from_dataframes( db_path, table_names_to_dataframes=dataframes, table_names_to_primary_keys...
rename arg in call to db_from_dataframes_with_absolute_path
py
diff --git a/ipywidgets/widgets/widget_float.py b/ipywidgets/widgets/widget_float.py index <HASH>..<HASH> 100644 --- a/ipywidgets/widgets/widget_float.py +++ b/ipywidgets/widgets/widget_float.py @@ -288,7 +288,7 @@ class _BoundedFloatRange(_FloatRange): def __init__(self, *args, **kwargs): min, max = kw...
Update widget_float.py Update logic in setting of default `value` field of the FloatRangeSlider so that numpy arrays can be passed as inputs (closes #<I>)
py
diff --git a/src/googleclouddebugger/module_explorer.py b/src/googleclouddebugger/module_explorer.py index <HASH>..<HASH> 100644 --- a/src/googleclouddebugger/module_explorer.py +++ b/src/googleclouddebugger/module_explorer.py @@ -89,7 +89,13 @@ def _GetCodeObjects(module, item, code_objects, visit_recorder): """ ...
Fix Python Borg Debugger to properly support applications packaged in a .par file. ------------- Created by MOE: <URL>
py
diff --git a/chisel/app.py b/chisel/app.py index <HASH>..<HASH> 100755 --- a/chisel/app.py +++ b/chisel/app.py @@ -49,7 +49,7 @@ class Application(object): def __init__(self, logStream = sys.stderr): self.logLevel = logging.WARNING - self.logFormat = '%(pathname)s:%(lineno)s: %(levelname)s [%(pro...
Remove filename and line number from default logger format
py
diff --git a/src/rabird/core/distutils/downloader.py b/src/rabird/core/distutils/downloader.py index <HASH>..<HASH> 100644 --- a/src/rabird/core/distutils/downloader.py +++ b/src/rabird/core/distutils/downloader.py @@ -125,13 +125,13 @@ def get_best_downloader(): if dl.viable(): return dl ...
Added user agent support for download()
py
diff --git a/flake8_aaa/function.py b/flake8_aaa/function.py index <HASH>..<HASH> 100644 --- a/flake8_aaa/function.py +++ b/flake8_aaa/function.py @@ -6,6 +6,8 @@ from .arrange_block import ArrangeBlock from .assert_block import AssertBlock from .exceptions import ValidationError from .helpers import ( + add_node...
Adjust Function to load ArrangeBlock by ActBlock line number
py
diff --git a/documenteer/sphinxconfig/stackconf.py b/documenteer/sphinxconfig/stackconf.py index <HASH>..<HASH> 100644 --- a/documenteer/sphinxconfig/stackconf.py +++ b/documenteer/sphinxconfig/stackconf.py @@ -502,7 +502,7 @@ def build_package_configs(project_name, if copyright is not None: c['copyright'...
Drop period from copyright for package builds The template itself already has that period.
py
diff --git a/pyOCD/gdbserver/gdb_socket.py b/pyOCD/gdbserver/gdb_socket.py index <HASH>..<HASH> 100644 --- a/pyOCD/gdbserver/gdb_socket.py +++ b/pyOCD/gdbserver/gdb_socket.py @@ -26,10 +26,11 @@ class GDBSocket(object): self.host = '' def init(self): - self.s = socket.socket(socket.AF_INET, socke...
protect against re-initing already initd sockets
py
diff --git a/src/adafruit_blinka/microcontroller/raspi_23/i2c.py b/src/adafruit_blinka/microcontroller/raspi_23/i2c.py index <HASH>..<HASH> 100644 --- a/src/adafruit_blinka/microcontroller/raspi_23/i2c.py +++ b/src/adafruit_blinka/microcontroller/raspi_23/i2c.py @@ -33,7 +33,7 @@ class I2C: return found ...
just raw read/write for i2c - tested with mcp<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import sdist_upip setup(name='picoweb', - version='1.7.1', + version='1.7.2', description="A very lightweight, memory-efficient async web framework \ for Pycopy (https://github.com/pfalcon/p...
setup.py: Release <I>.
py
diff --git a/fastly/cli.py b/fastly/cli.py index <HASH>..<HASH> 100644 --- a/fastly/cli.py +++ b/fastly/cli.py @@ -21,8 +21,9 @@ def main(): ) argparser.add_argument( - "-k", "--api-key", required=False, - help="Fastly API key", default=os.environ.get('FASTLY_API_KEY') + "-k", "--api-ke...
Allow setting default service as FASTLY_SERVICE_ID env var.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,6 @@ setup( 'Framework :: Django :: 1.8', 'Framework :: Django :: 1.9', 'Framework :: Django :: 1.10', - 'Framework :: Django :: 1.11', ], # What does your project relate...
Django <I> isn't a valid classifier (yet)
py
diff --git a/tests/unit/states/environ_test.py b/tests/unit/states/environ_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/states/environ_test.py +++ b/tests/unit/states/environ_test.py @@ -1,5 +1,9 @@ # -*- coding: utf-8 -*- +# Import python libs +from __future__ import absolute_import +import os + # Import S...
Reset env at end of test
py
diff --git a/perf/text_runner.py b/perf/text_runner.py index <HASH>..<HASH> 100644 --- a/perf/text_runner.py +++ b/perf/text_runner.py @@ -630,7 +630,6 @@ class TextRunner: display_run(bench, run_index, run, file=stream) elif not quiet: print(".", end='', file=stream) - ...
TextRunner: flush after each run Ensure that output is written when output is redirected into a pipe.
py
diff --git a/core/dbt/parser/source_config.py b/core/dbt/parser/source_config.py index <HASH>..<HASH> 100644 --- a/core/dbt/parser/source_config.py +++ b/core/dbt/parser/source_config.py @@ -97,7 +97,7 @@ class SourceConfig(object): current = self.in_model_config.get(key, {}) try: ...
Add AttributionError to except block
py
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index <HASH>..<HASH> 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -938,7 +938,7 @@ def merge_mpy(raw_codes, output_file): merged_mpy.extend(header) bytecode = bytearray() - bytecode_len = 6 + len(raw_codes) * 4 + 2 + bytec...
tools/mpy-tool.py: Fix merge of multiple mpy files to POP_TOP correctly. MP_BC_CALL_FUNCTION will leave the result on the Python stack, so that result must be discarded by MP_BC_POP_TOP.
py
diff --git a/pynes/tests/tay_test.py b/pynes/tests/tay_test.py index <HASH>..<HASH> 100644 --- a/pynes/tests/tay_test.py +++ b/pynes/tests/tay_test.py @@ -4,14 +4,15 @@ import unittest from pynes.compiler import lexical, syntax, semantic + class TayTest(unittest.TestCase): def test_tay_sngl(self): ...
PEP8 fixes on tests/tay_test.py
py
diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -106,7 +106,7 @@ class Svtplay(Service, MetadataThumbMixin): return for i in janson["videoRefe...
svtplay: detect hls streams in a better way
py
diff --git a/graphenebase/types.py b/graphenebase/types.py index <HASH>..<HASH> 100644 --- a/graphenebase/types.py +++ b/graphenebase/types.py @@ -127,7 +127,11 @@ class Int64() : class String() : def __init__(self, d) : - self.data = d + # Repalce UTF8 chars with what ever looks closest + ...
[transaction] Replace utf-8 characters by ascii chars in String()
py
diff --git a/pyof/v0x01/common/constants.py b/pyof/v0x01/common/constants.py index <HASH>..<HASH> 100644 --- a/pyof/v0x01/common/constants.py +++ b/pyof/v0x01/common/constants.py @@ -1,2 +1,6 @@ """Here we have the constants related to v0x01 version""" OFP_VERSION = 0x01 + +#: This value represents the constant -1. T...
Defined a Way to represent the -1 constant
py
diff --git a/pymatgen/io/vasp/sets.py b/pymatgen/io/vasp/sets.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/vasp/sets.py +++ b/pymatgen/io/vasp/sets.py @@ -222,7 +222,7 @@ class VaspInputSet(MSONable, metaclass=abc.ABCMeta): if zip_output: filename = self.__class__.__name__ + ".zip" - ...
Ensure zipped output is placed in correct directory
py
diff --git a/kmip/pie/client.py b/kmip/pie/client.py index <HASH>..<HASH> 100644 --- a/kmip/pie/client.py +++ b/kmip/pie/client.py @@ -131,7 +131,7 @@ class ProxyKmipClient(object): self.proxy.open() self._is_open = True except Exception as e: - self.logger....
Stop logging tracebacks when we're about to reraise At that point, it's up to the caller to decide whether a stack trace is appropriate; if the caller decides the connection error is recoverable, us logging a traceback will only confuse things. Also, prevent a TypeError during log interpolation by actually using the ...
py
diff --git a/md2latex.py b/md2latex.py index <HASH>..<HASH> 100644 --- a/md2latex.py +++ b/md2latex.py @@ -226,8 +226,9 @@ class MarkdownToLaTeXConverter(LaTeXRenderer): else: return '' -import sys -with open(sys.argv[1]) as f: - converter = MarkdownToLaTeXConverter() - print converter.con...
md2latex can be a library. Use __name__ condition for command line interface
py
diff --git a/tests/utils.py b/tests/utils.py index <HASH>..<HASH> 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,5 +1,6 @@ import os +import django from django.conf import settings from django.utils import six @@ -17,6 +18,11 @@ def _(path): class pipeline_settings(override_settings): def __init_...
Fixed failing tests for Django <I>
py
diff --git a/flask_apispec/extension.py b/flask_apispec/extension.py index <HASH>..<HASH> 100644 --- a/flask_apispec/extension.py +++ b/flask_apispec/extension.py @@ -59,8 +59,6 @@ class FlaskApiSpec(object): for deferred in self._deferred: deferred() - self.register_existing_resources() ...
remove call to register_existing_endpoints by default
py
diff --git a/django_tinsel/decorators.py b/django_tinsel/decorators.py index <HASH>..<HASH> 100644 --- a/django_tinsel/decorators.py +++ b/django_tinsel/decorators.py @@ -131,7 +131,7 @@ def string_to_response(content_type): response['Content-Type'] = content_type except HttpBadRequestEx...
Don't call non-existant property on Exception class Changes to the python base Exception class in PEP<I> included a deprecation and subsequent removal of the message property. This issue came up while fixing tests for the Python 2 to 3 upgrade in OTM, namely OTM-core. <URL>
py
diff --git a/spyderlib/widgets/explorer.py b/spyderlib/widgets/explorer.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/explorer.py +++ b/spyderlib/widgets/explorer.py @@ -373,7 +373,10 @@ class ExplorerTreeWidget(DirView): if answer == QMessageBox.No: return try: - ...
File explorer widget: fixed "Delete" feature for directories
py
diff --git a/safe/messaging/message.py b/safe/messaging/message.py index <HASH>..<HASH> 100644 --- a/safe/messaging/message.py +++ b/safe/messaging/message.py @@ -27,7 +27,7 @@ LOGGER = logging.getLogger('InaSAFE') class Message(MessageElement): """Message object to contain a list of MessageElements""" - def...
allow quick building of Messages through *args
py
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -212,6 +212,8 @@ class EventBasedCalculator(base.HazardCalculator): par['samples'] = self.samples...
More logging [skip CI]
py
diff --git a/workalendar/core.py b/workalendar/core.py index <HASH>..<HASH> 100644 --- a/workalendar/core.py +++ b/workalendar/core.py @@ -306,7 +306,7 @@ class ChristianMixin(Calendar): def get_corpus_christi(self, year): return self.get_easter_sunday(year) + timedelta(days=60) - def get_variable_da...
silence flake8 "too complex" rule
py
diff --git a/discord/emoji.py b/discord/emoji.py index <HASH>..<HASH> 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -94,7 +94,7 @@ class PartialEmoji: return self.id == other.id def __ne__(self, other): - return not self == other + return not self.__eq__(other) def __h...
Use explicit __eq__ call to be consistent with other methods.
py
diff --git a/tofu/benchmarks/benchmarks_03_solidangles.py b/tofu/benchmarks/benchmarks_03_solidangles.py index <HASH>..<HASH> 100644 --- a/tofu/benchmarks/benchmarks_03_solidangles.py +++ b/tofu/benchmarks/benchmarks_03_solidangles.py @@ -13,7 +13,7 @@ _PATH_HERE = os.path.dirname(__file__) _PATH_TOFU = os.path.dirnam...
[#<I>] Minor debug in benchmark
py
diff --git a/synapse/lib/plex.py b/synapse/lib/plex.py index <HASH>..<HASH> 100644 --- a/synapse/lib/plex.py +++ b/synapse/lib/plex.py @@ -29,7 +29,7 @@ class Plex(s_eventbus.EventBus): def fini(): coro = self._onAsyncFini() try: - self.coroToSync(coro, timeout=2) + ...
Decreate plex fini wait time to a unperceptable amount. Improve docs
py
diff --git a/angr/analyses/cfg_base.py b/angr/analyses/cfg_base.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg_base.py +++ b/angr/analyses/cfg_base.py @@ -88,6 +88,10 @@ class CFGBase(Analysis): return cfg_node in self._graph @property + def normalized(self): + return self._normalized ...
New property to CFG: normalized
py
diff --git a/nomenclate/ui/token_widget.py b/nomenclate/ui/token_widget.py index <HASH>..<HASH> 100644 --- a/nomenclate/ui/token_widget.py +++ b/nomenclate/ui/token_widget.py @@ -12,14 +12,11 @@ print(QtWidgets.__file__) class CustomCompleter(QtWidgets.QCompleter): def __init__(self, options, parent=None): ...
Just left Completer showing unfiltered results and moving on.
py
diff --git a/tests/test_jsonpath.py b/tests/test_jsonpath.py index <HASH>..<HASH> 100644 --- a/tests/test_jsonpath.py +++ b/tests/test_jsonpath.py @@ -130,7 +130,8 @@ class TestJsonPath(unittest.TestCase): self.check_cases([ ('[0]', [42], [42]), ('[5]', [42], []), - ('[2]',...
added test for foo.[*] where foo is null
py
diff --git a/scrapple/selectors/xpath.py b/scrapple/selectors/xpath.py index <HASH>..<HASH> 100644 --- a/scrapple/selectors/xpath.py +++ b/scrapple/selectors/xpath.py @@ -9,6 +9,7 @@ try: except ImportError: from urllib.parse import urljoin +from lxml.etree import XPathError from scrapple.selectors.selector impor...
Add exception handler for invalid xpath expressions
py
diff --git a/vk_requests/exceptions.py b/vk_requests/exceptions.py index <HASH>..<HASH> 100644 --- a/vk_requests/exceptions.py +++ b/vk_requests/exceptions.py @@ -70,3 +70,6 @@ class VkAPIError(VkException): if self.redirect_uri: tokens.append('redirect_uri=\'%s\'' % self.redirect_uri) re...
Add __repr__() method to VkAPIError Update VkAPIError so that the repr() call on it returns a useful string with all of the attributes instead of the useless "VkAPIError()"
py
diff --git a/pinax/documents/hooks.py b/pinax/documents/hooks.py index <HASH>..<HASH> 100644 --- a/pinax/documents/hooks.py +++ b/pinax/documents/hooks.py @@ -8,7 +8,7 @@ from django.utils.translation import ugettext as _ from .conf import settings -class DocumentsDefaultHookSet(object): +class DocumentsDefaultHoo...
Drop old-styled class definitions
py
diff --git a/flask_io/io.py b/flask_io/io.py index <HASH>..<HASH> 100644 --- a/flask_io/io.py +++ b/flask_io/io.py @@ -193,7 +193,7 @@ class FlaskIO(object): mimetype = get_best_match_for_content_type(self.decoders, self.default_decoder) if not mimetype: - raise NotAcceptable() + ...
Changed error message when the content-type is not supported.
py
diff --git a/pfamserver/autoupdate.py b/pfamserver/autoupdate.py index <HASH>..<HASH> 100644 --- a/pfamserver/autoupdate.py +++ b/pfamserver/autoupdate.py @@ -42,6 +42,7 @@ def get_max_version(protocol): def get_available(config): + global select_proto available = None print("->\tPFam: Get availables ...
Fix a bug with the select_proto.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,17 +6,19 @@ from setuptools import setup ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) -if sys.version_info[0] == 3: - requirements_file = './requirements3.txt' -else: - requirements_fil...
Resolves #<I>, don't use pinned dependencies.
py
diff --git a/samalg/gui.py b/samalg/gui.py index <HASH>..<HASH> 100644 --- a/samalg/gui.py +++ b/samalg/gui.py @@ -573,7 +573,7 @@ class SAMGUI(object): init = 3000 ngenes = widgets.FloatSlider( value=init, - min=100, + min=min(100,self.sams[0].adata.shape[1]), ...
fix minor hardcoding issue in gui
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,6 +25,7 @@ sys.path.insert(0, os.path.abspath('..')) # mock imports, see https://stackoverflow.com/q/15889621 # autodoc_mock_imports = ['tensorflow'] does not seem to work sys.modules['numpy'] = Mock() +...
fix docs (#<I>)
py
diff --git a/tests/test_config_utils.py b/tests/test_config_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_config_utils.py +++ b/tests/test_config_utils.py @@ -229,6 +229,13 @@ def test_file_config(): assert config == {} +def test_invalid_file_config(): + from bigchaindb.config_utils import file_conf...
Added test case for invalid config file exception handling
py
diff --git a/src/suit_dashboard/widgets.py b/src/suit_dashboard/widgets.py index <HASH>..<HASH> 100644 --- a/src/suit_dashboard/widgets.py +++ b/src/suit_dashboard/widgets.py @@ -80,4 +80,3 @@ class WidgetItem(object): self.value = value self.is_chart = is_chart self.classes = classes -
Remove blank line at the end of widgets.py -_-
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,8 +27,13 @@ def find_version(*file_paths): # Get the long description from the relevant file -with codecs.open('DESCRIPTION.rst', encoding='utf-8') as f: - long_description = f.read() +try: + with codecs.open('D...
Fix the error thar travis can't find DESCRIPTION.rst
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -90,10 +90,10 @@ setup( data_files = [('man/man1', ['benchsuite.1'])], setup_requires=['argparse-manpage==0.0.1'], - install_requires=['prettytable', 'benchsuite.core', 'argcomplete'], - dependency_links=[ - ...
removed dependency link because recent versions of pip do not process it anymore
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,12 +11,15 @@ v = open(os.path.join(os.path.dirname(__file__), 'stellar', 'app.py')) VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1) v.close() +with open("README.md") as readme: + long...
Ensure file handle is closed using with statement
py
diff --git a/sos/sosreport.py b/sos/sosreport.py index <HASH>..<HASH> 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -600,7 +600,8 @@ class SoSOptions(object): default=deque()) parser.add_option("--log-size", action="store", dest="log_size", defaul...
[sosreport] fix line length regression (a2dc<I>) Fix a pep8 regression introduced in commit a2dc<I>.
py
diff --git a/datums/models/questions.py b/datums/models/questions.py index <HASH>..<HASH> 100644 --- a/datums/models/questions.py +++ b/datums/models/questions.py @@ -11,8 +11,8 @@ class Question(GhostBase): __tablename__ = 'questions' id = Column(Integer, primary_key=True, unique=True) - type = Column(I...
Questions must have both a type and a prompt.
py
diff --git a/intranet/apps/api/tests.py b/intranet/apps/api/tests.py index <HASH>..<HASH> 100644 --- a/intranet/apps/api/tests.py +++ b/intranet/apps/api/tests.py @@ -135,6 +135,8 @@ class ApiTest(IonTestCase): block = EighthBlock.objects.create(date=datetime.datetime(2015, 1, 1), block_letter='A') re...
fix #<I>, update test to detect errors better
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from setuptools.command.build_ext import build_ext as _build_ext # This is needed to use numpy in this module, and should work whether or not numpy is # already installed. If it's not, it will trigger an insta...
Using a custom build_ext to setup the include directories
py
diff --git a/acouchbase/tests/transactions_t.py b/acouchbase/tests/transactions_t.py index <HASH>..<HASH> 100644 --- a/acouchbase/tests/transactions_t.py +++ b/acouchbase/tests/transactions_t.py @@ -190,7 +190,7 @@ class AsyncTransactionsTests: @pytest.mark.usefixtures("check_txn_queries_supported") @pytest...
Fixup bad test name Motivation ========== Somehow missed this when a new test was added -- two with same name! Modification ============ Renamed one to test_bad_query Results ======= The test suite passes. Change-Id: Id5a<I>f<I>d<I>d5c<I>c<I>de<I>aecb<I> Reviewed-on: <URL>
py
diff --git a/sphinx_revealjs/__init__.py b/sphinx_revealjs/__init__.py index <HASH>..<HASH> 100644 --- a/sphinx_revealjs/__init__.py +++ b/sphinx_revealjs/__init__.py @@ -27,7 +27,6 @@ from sphinx_revealjs.nodes import ( revealjs_slide, ) from sphinx_revealjs.themes import get_theme_path -from sphinx_revealjs.ut...
refactor: Fix for flake8
py
diff --git a/tensor2tensor/data_generators/wmt.py b/tensor2tensor/data_generators/wmt.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/data_generators/wmt.py +++ b/tensor2tensor/data_generators/wmt.py @@ -510,9 +510,9 @@ class TranslateEnzhWmt8k(TranslateProblem): def feature_encoders(self, data_dir): vocab_s...
fix #<I> encoded vocab filepath for wmt<I>.zh-en (#<I>)
py
diff --git a/lib/ast/node_type.py b/lib/ast/node_type.py index <HASH>..<HASH> 100644 --- a/lib/ast/node_type.py +++ b/lib/ast/node_type.py @@ -82,6 +82,7 @@ NodeType = { 'STRING': 81, 'LIST': 82, 'DICT': 83, + 'NESTING': 84, 'OPTION': 85, 'IDENTIFIER': 86, 'CURLYNAME': 87,
Fix NESTING node type missing
py
diff --git a/tests/test_disque.py b/tests/test_disque.py index <HASH>..<HASH> 100644 --- a/tests/test_disque.py +++ b/tests/test_disque.py @@ -26,7 +26,6 @@ class TestDisque(unittest.TestCase): """ Fetch the queue, return a job, check that it's back. """ - print self.client.info() ...
Addendum Tighened up the unit test, on top of the additional commands. Removed a silly print debug.
py
diff --git a/masonite/providers/AppProvider.py b/masonite/providers/AppProvider.py index <HASH>..<HASH> 100644 --- a/masonite/providers/AppProvider.py +++ b/masonite/providers/AppProvider.py @@ -13,6 +13,7 @@ from masonite.commands.MigrateRollbackCommand import MigrateRollbackCommand from masonite.commands.ModelComman...
Forgot to add it to the container
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -42,5 +42,6 @@ setup(name='foremast', 'destroy-iam=foremast.iam.destroy_iam.__main__:main', 'destroy-s3=foremast.s3.destroy_s3.__main__:main', 'destroy-sg=foremast.securitygroup.des...
added slack notify to foremast.bash
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -87,6 +87,7 @@ additions for Django projects. See the project page for more information: packages=packages, cmdclass=cmdclasses, data_files=data_files, + install_requires=['six'], tests_require=['Django'...
add six to install_requires, refs #<I>
py
diff --git a/versionner/cli.py b/versionner/cli.py index <HASH>..<HASH> 100755 --- a/versionner/cli.py +++ b/versionner/cli.py @@ -382,8 +382,8 @@ def command_tag(cfg): """ version_file = version.VersionFile(cfg.version_file) + current = version_file.read() try: - current = version_file.read(...
executing version_file.read moved above try/catch block
py
diff --git a/salt/utils/event.py b/salt/utils/event.py index <HASH>..<HASH> 100644 --- a/salt/utils/event.py +++ b/salt/utils/event.py @@ -486,9 +486,9 @@ class SaltEvent(object): break mtag, data = self.unpack(raw, self.serial) ret = {'data': data, 'tag': mtag} - ...
Fix master crash on ctl-c for long-running job (#<I>) * Fix master crash on ctl-c for long-running job This was causing events to loop into the reactor, spiking CPU and leaking memory. * Lint
py
diff --git a/smartcov.py b/smartcov.py index <HASH>..<HASH> 100644 --- a/smartcov.py +++ b/smartcov.py @@ -84,6 +84,7 @@ class FilteredStream(object): self.stream = stream self._interesting = False self._buffered = [] + self._last_line_was_printable = False def line_is_interesti...
Compat with recent coverage versions that write newlines separately.
py
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index <HASH>..<HASH> 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -140,8 +140,8 @@ def _grouped_plot(plotf, data, by=None, numeric_only=True, figsize=None, # our favorite default beating matplotlib's idea of the ...
ENH: cleanup post cherry-pick
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import find_packages, setup setup( name='hpfeeds3', - version='0.9', + version='0.10.dev0', description='Python implementation of the honeypot feeds broker', author='John Ca...
Back to development: <I>
py