diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/buckets/storage.py b/buckets/storage.py index <HASH>..<HASH> 100644 --- a/buckets/storage.py +++ b/buckets/storage.py @@ -28,9 +28,8 @@ class S3Storage(Storage): def _open(self, name, mode='rb'): s3 = self.get_boto_ressource() f = s3.Object(self.bucket_name, name).get() - writ...
Use correct key in Storage.open()
py
diff --git a/pandas/tests/frame/methods/test_append.py b/pandas/tests/frame/methods/test_append.py index <HASH>..<HASH> 100644 --- a/pandas/tests/frame/methods/test_append.py +++ b/pandas/tests/frame/methods/test_append.py @@ -177,3 +177,19 @@ class TestDataFrameAppend: result = df.append(df.iloc[0]).iloc[-1] ...
:white_check_mark: Test DataFrame.append with other dtypes (#<I>)
py
diff --git a/psamm/commands/vis.py b/psamm/commands/vis.py index <HASH>..<HASH> 100644 --- a/psamm/commands/vis.py +++ b/psamm/commands/vis.py @@ -845,8 +845,9 @@ def set_edge_props_withfba(g, edge_values): if value > max_edge_value: value = max_edge_value alpha = value / max_...
Format pen_width to always show 3 decimal places.
py
diff --git a/sc2/game_data.py b/sc2/game_data.py index <HASH>..<HASH> 100644 --- a/sc2/game_data.py +++ b/sc2/game_data.py @@ -69,10 +69,19 @@ class GameData(object): return Cost(0, 0) class AbilityData(object): - @staticmethod - def id_exists(ability_id: int) -> bool: + ability_ids: List[int] = []...
Load abilities faster Eliminated bottleneck of loading abilities data at startup time
py
diff --git a/webview/platforms/cocoa.py b/webview/platforms/cocoa.py index <HASH>..<HASH> 100755 --- a/webview/platforms/cocoa.py +++ b/webview/platforms/cocoa.py @@ -834,8 +834,14 @@ def evaluate_js(script, uid): def get_position(uid): - origin = BrowserView.instances[uid].window.frame().origin - return ori...
[Cocoa] Fix calculation of y position (default is from the bottom of the screen).
py
diff --git a/vyper/codegen/return_.py b/vyper/codegen/return_.py index <HASH>..<HASH> 100644 --- a/vyper/codegen/return_.py +++ b/vyper/codegen/return_.py @@ -8,6 +8,7 @@ from vyper.parser.lll_node import ( from vyper.parser.parser_utils import ( getpos, zero_pad, + make_setter, # typechecker ) from vyp...
Run typechecker in gen_tuple_return by using make_setter for its typechecking side effects.
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -2986,9 +2986,13 @@ def check_perms(name, ret, user, group, mode, follow_symlinks=False): ret['changes']['mode'] = mode # user/group changes if need...
Teach file.check_perms to handle uids and gids. Fixes #<I>. Allow passing in numeric values for user and group.
py
diff --git a/examples/chat_example.py b/examples/chat_example.py index <HASH>..<HASH> 100644 --- a/examples/chat_example.py +++ b/examples/chat_example.py @@ -1,33 +1,24 @@ from terrabot import TerraBot from terrabot.events import Events -bot = TerraBot('127.0.0.1') +# Create a TerraBot object +bot = TerraBot('192....
Updated old example to work in the new version again
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='buildapi_client', - version='0.2.0', + version='0.2.1.dev0', packages=find_packages(), install_requires=[
Back to development: <I>
py
diff --git a/core.py b/core.py index <HASH>..<HASH> 100644 --- a/core.py +++ b/core.py @@ -134,7 +134,6 @@ class Orchestrator(Module): def stop(self): with self.lock: self.running = False - self.player.stop() def run(self): self.running = True
core: don't let the Orchestrator stop the player
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ except: pass -with open('mhcflurry/package_metadata.py', 'r') as f: +with open('mhcflurry/__init__.py', 'r') as f: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', ...
got rid of package_metadata
py
diff --git a/salt/modules/pip.py b/salt/modules/pip.py index <HASH>..<HASH> 100644 --- a/salt/modules/pip.py +++ b/salt/modules/pip.py @@ -45,7 +45,7 @@ def _get_pip_bin(bin_env): # try to get pip bin from env if os.path.isdir(bin_env): if salt.utils.is_windows(): - pip_bin = os.path.join(...
Fixed returned path for virtualenv pip binary on Windows - Makes sure we have the slashes correctly escaped
py
diff --git a/openfisca_web_api_preview/app.py b/openfisca_web_api_preview/app.py index <HASH>..<HASH> 100644 --- a/openfisca_web_api_preview/app.py +++ b/openfisca_web_api_preview/app.py @@ -171,7 +171,8 @@ def create_app(tax_benefit_system, if request.headers.get('dnt'): tracker.track(req...
Send reference to the country-package version to the tracker
py
diff --git a/aioice/ice.py b/aioice/ice.py index <HASH>..<HASH> 100644 --- a/aioice/ice.py +++ b/aioice/ice.py @@ -128,6 +128,9 @@ class StunProtocol: self.transport = None self.transactions = {} + def connection_lost(self, exc): + logger.debug('connection_lost(%s)', exc) + def connec...
[protocol] fix logging
py
diff --git a/gifi/feature.py b/gifi/feature.py index <HASH>..<HASH> 100644 --- a/gifi/feature.py +++ b/gifi/feature.py @@ -122,7 +122,6 @@ def _discard(repo=None): repo.git.checkout(config.target_branch) repo.git.rebase('%s/%s' % (config.target_remote, config.target_branch)) try: - repo.git.commit...
Do not ammend HEAD commit after feature is discarded
py
diff --git a/dynamic/test_client.py b/dynamic/test_client.py index <HASH>..<HASH> 100644 --- a/dynamic/test_client.py +++ b/dynamic/test_client.py @@ -41,7 +41,9 @@ class TestDynamicClient(unittest.TestCase): changeme_api = client.resources.get( api_version='apps.example.com/v1', kind='Clu...
Use explicit API version for retrieving CRD API
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ extras_require = { # For the pipelines.lsst.io documentation project 'pipelines': [ 'lsst-sphinx-bootstrap-theme>=0.1.0,<0.2.0', - 'astropy-helpers>=1.2.0,<1.4.0', + 'astropy-hel...
bump astropy_helpers to ~> <I>
py
diff --git a/holoviews/core/util.py b/holoviews/core/util.py index <HASH>..<HASH> 100644 --- a/holoviews/core/util.py +++ b/holoviews/core/util.py @@ -8,12 +8,7 @@ import numpy as np import param # Python3 compatibility -if sys.version_info.major == 3: - unicode = str - basestring = str -else: - unicode = ...
Simplified logic for Python 3 basestring compatibility
py
diff --git a/docker/types/healthcheck.py b/docker/types/healthcheck.py index <HASH>..<HASH> 100644 --- a/docker/types/healthcheck.py +++ b/docker/types/healthcheck.py @@ -53,6 +53,8 @@ class Healthcheck(DictType): @test.setter def test(self, value): + if isinstance(value, six.string_types): + ...
Handle str in setter for test.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_ver...
Added the version for the new release
py
diff --git a/datetime_tz/__init__.py b/datetime_tz/__init__.py index <HASH>..<HASH> 100644 --- a/datetime_tz/__init__.py +++ b/datetime_tz/__init__.py @@ -658,11 +658,8 @@ class datetime_tz(datetime.datetime): elif toparselower == "yesterday": dt -= datetime.timedelta(days=1) - elif toparselower == "to...
Combine two conditions as per pull request comment
py
diff --git a/monty/dev.py b/monty/dev.py index <HASH>..<HASH> 100644 --- a/monty/dev.py +++ b/monty/dev.py @@ -64,8 +64,12 @@ def deprecated(replacement=None): def wrapped(*args, **kwargs): msg = "{} is deprecated".format(old.__name__) if replacement is not None: - msg ...
Add Will's changes to allow deprecated decorator to work with properties.
py
diff --git a/celerytask/tasks.py b/celerytask/tasks.py index <HASH>..<HASH> 100755 --- a/celerytask/tasks.py +++ b/celerytask/tasks.py @@ -193,7 +193,7 @@ def run_api_refresh(): if main_alliance_id == settings.ALLIANCE_ID: pass e...
Updated logic in tasks.py to insure services are deactivated
py
diff --git a/ftfy/badness.py b/ftfy/badness.py index <HASH>..<HASH> 100644 --- a/ftfy/badness.py +++ b/ftfy/badness.py @@ -122,12 +122,14 @@ COMMON_SYMBOL_RE = re.compile( # signs in contexts where they really do look like mojibake. MOJIBAKE_SYMBOL_RE = re.compile( - # Mojibake of low-numbered characters from an...
Tune the heuristic to be more careful and match its comments better
py
diff --git a/tests/test_simulation.py b/tests/test_simulation.py index <HASH>..<HASH> 100644 --- a/tests/test_simulation.py +++ b/tests/test_simulation.py @@ -361,7 +361,7 @@ def test_collect_variables(df): def injected(): return 'injected' - @sim.table_source('source') + @sim.table_source('source...
Add test to simulation framework for variable name with space
py
diff --git a/tornado/locale.py b/tornado/locale.py index <HASH>..<HASH> 100644 --- a/tornado/locale.py +++ b/tornado/locale.py @@ -398,6 +398,7 @@ class GettextLocale(Locale): LOCALE_NAMES = { "af_ZA": {"name_en": u"Afrikaans", "name": u"Afrikaans"}, + "am_ET": {"name_en": u"Amharic", "name": u'\u12a0\u121b\...
Add Amharic to tornado.locale's list of languages. Closes #<I>.
py
diff --git a/tests/utils/test_interfaces.py b/tests/utils/test_interfaces.py index <HASH>..<HASH> 100644 --- a/tests/utils/test_interfaces.py +++ b/tests/utils/test_interfaces.py @@ -16,9 +16,15 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -from gns3server.utils.interfaces import inte...
Add a stupid is_interface_up test in order to see why it's crash on travis Related to #<I>
py
diff --git a/jax/interpreters/pxla.py b/jax/interpreters/pxla.py index <HASH>..<HASH> 100644 --- a/jax/interpreters/pxla.py +++ b/jax/interpreters/pxla.py @@ -246,6 +246,10 @@ def axis_groups(axis_env, name): def compile_replicated(jaxpr, axis_name, axis_size, consts, *abstract_args): num_replicas = axis_size * j...
catch pmap num_devices errors at compile time too
py
diff --git a/flask_restful_swagger/swagger.py b/flask_restful_swagger/swagger.py index <HASH>..<HASH> 100644 --- a/flask_restful_swagger/swagger.py +++ b/flask_restful_swagger/swagger.py @@ -167,7 +167,7 @@ def _get_current_registry(api=None): reg = registry.setdefault(app_name, {}) reg.update(overrides) - reg...
doesnt fail on nulltype for unicode
py
diff --git a/slither/__main__.py b/slither/__main__.py index <HASH>..<HASH> 100644 --- a/slither/__main__.py +++ b/slither/__main__.py @@ -203,7 +203,11 @@ def main_impl(all_detector_classes, all_printer_classes): if args.json: output_json(results, args.json) - logger.info('%s analyzed (%...
Remove results information if printers are used
py
diff --git a/LiSE/LiSE/handle.py b/LiSE/LiSE/handle.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/handle.py +++ b/LiSE/LiSE/handle.py @@ -112,10 +112,11 @@ def _packed_dict_delta(old, new): removed_thread.join() if not (changes.any() or r): return {} - changed_keys = ks[changes] - changed_valu...
Skip a bit when there are no changed values in _packed_dict_delta
py
diff --git a/taxi/__init__.py b/taxi/__init__.py index <HASH>..<HASH> 100644 --- a/taxi/__init__.py +++ b/taxi/__init__.py @@ -1 +1 @@ -__version__ = '2.3 alpha' +__version__ = '2.3'
update version number to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ -from distutils.core import setup - -setup(name='AuthZ-Group', ...
Dropping the specific django version requirement
py
diff --git a/sebastian/core/elements.py b/sebastian/core/elements.py index <HASH>..<HASH> 100644 --- a/sebastian/core/elements.py +++ b/sebastian/core/elements.py @@ -1,4 +1,5 @@ + class UnificationError(Exception): pass @@ -48,7 +49,6 @@ class SeqBase: def map_points(self, func): return s...
fixed whitespace nits linter complained about
py
diff --git a/verarandom/random_generator.py b/verarandom/random_generator.py index <HASH>..<HASH> 100644 --- a/verarandom/random_generator.py +++ b/verarandom/random_generator.py @@ -63,8 +63,8 @@ class VeraRandom(Random): max_int = int('9' * number_of_digits) randints = self.randints(0, max_int, Ra...
Delay join to avoid having a misleading variable name
py
diff --git a/emma2/__init__.py b/emma2/__init__.py index <HASH>..<HASH> 100644 --- a/emma2/__init__.py +++ b/emma2/__init__.py @@ -2,11 +2,14 @@ Emma2 package """ +import pkg_resources +pkg_resources.require('numpy >= 1.8.0') + import coordinates import msm import pmm import util -""" global logging suppo...
[emma2/__init__] require <I> of numpy (this is reused in all subsequent imports of numpy, since imports are cached)
py
diff --git a/encrypted_fields/__init__.py b/encrypted_fields/__init__.py index <HASH>..<HASH> 100644 --- a/encrypted_fields/__init__.py +++ b/encrypted_fields/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.1.0' +__version__ = '0.1.1' from .fields import *
rev the version to release the Django <I> fixes
py
diff --git a/stubilous/server.py b/stubilous/server.py index <HASH>..<HASH> 100644 --- a/stubilous/server.py +++ b/stubilous/server.py @@ -1,3 +1,4 @@ +import logging from flask import Flask, make_response @@ -31,6 +32,10 @@ def init_routes(app, routes): route.statu...
Notify about not found urls
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import setuptools setuptools.setup( name="Mongothon", - version="0.7.16", + version="0.7.17", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mappi...
Use new version of Schemer and make the version float
py
diff --git a/misc.py b/misc.py index <HASH>..<HASH> 100644 --- a/misc.py +++ b/misc.py @@ -80,9 +80,9 @@ def MeterOffset(lat1, lon1, lat2, lon2): def isotime(s): """Convert timestamps in ISO8661 format to and from Unix time.""" - if isinstance(s, type(1)): + if isinstance(s, type(int)): return ti...
Refactored and replaced custom functions with standard library
py
diff --git a/orb/core/column_types/ids.py b/orb/core/column_types/ids.py index <HASH>..<HASH> 100644 --- a/orb/core/column_types/ids.py +++ b/orb/core/column_types/ids.py @@ -17,7 +17,7 @@ class IdColumn(Column): # common to all default IDs if type == 'default': - self.setFlag(self.Flags....
renamed this to be more generic than incrementing
py
diff --git a/inject/__init__.py b/inject/__init__.py index <HASH>..<HASH> 100644 --- a/inject/__init__.py +++ b/inject/__init__.py @@ -213,11 +213,11 @@ class _ConstructorBinding(Generic[T]): self._instance = None def __call__(self) -> T: - if self._created and self._instance: + if self._c...
Fix boolean casting to make possible to inject DataFrame (#<I>)
py
diff --git a/holidays.py b/holidays.py index <HASH>..<HASH> 100755 --- a/holidays.py +++ b/holidays.py @@ -2404,7 +2404,7 @@ class Germany(HolidayBase): if self.prov in ('BW', 'BY', 'NW', 'RP', 'SL'): self[date(year, NOV, 1)] = 'Allerheiligen' - if (year >= 1990 and year <= 1994) or self....
remove redundant year check (#<I>) If the year is < <I> this code is never executed anyways because earlier in this function there's: if year <= <I>: return
py
diff --git a/cltk/tests/test_languages/test_old_norse.py b/cltk/tests/test_languages/test_old_norse.py index <HASH>..<HASH> 100644 --- a/cltk/tests/test_languages/test_old_norse.py +++ b/cltk/tests/test_languages/test_old_norse.py @@ -90,7 +90,8 @@ class TestOldNorse(unittest.TestCase): text = "Gefjun dró frá ...
Update test_old_norse.py
py
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py index <HASH>..<HASH> 100755 --- a/howdoi/howdoi.py +++ b/howdoi/howdoi.py @@ -91,6 +91,8 @@ HTML_CACHE_PATH = 'page_cache' SUPPORTED_HELP_QUERIES = ['use howdoi', 'howdoi', 'run howdoi', 'setup howdoi', 'do howdoi', 'howdoi howdoi', 'howdoi us...
Show error message when we aren't able to find an answer Fixes #<I>
py
diff --git a/src/qnet/algebra/core/abstract_quantum_algebra.py b/src/qnet/algebra/core/abstract_quantum_algebra.py index <HASH>..<HASH> 100644 --- a/src/qnet/algebra/core/abstract_quantum_algebra.py +++ b/src/qnet/algebra/core/abstract_quantum_algebra.py @@ -360,7 +360,7 @@ class QuantumOperation(QuantumExpression, Ope...
Fix handling of kwargs in _simplify_scalar
py
diff --git a/src/wa_kat/rest_api/to_output.py b/src/wa_kat/rest_api/to_output.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/rest_api/to_output.py +++ b/src/wa_kat/rest_api/to_output.py @@ -46,9 +46,10 @@ def compile_keywords(keywords): "mrf": keyword["mrf"], }) - if "angl_ekviva...
#<I>: Fixed case, when the english equivalent is not available.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1 @@ from crate.theme.rtd.conf.crate_crash import * - -site_url = 'https://crate.io/docs/crate/crash/en/latest/' -extensions = ['sphinx_sitemap']
Prune config (no longer needed)
py
diff --git a/zinnia/admin/entry.py b/zinnia/admin/entry.py index <HASH>..<HASH> 100644 --- a/zinnia/admin/entry.py +++ b/zinnia/admin/entry.py @@ -131,8 +131,8 @@ class EntryAdmin(admin.ModelAdmin): def get_link(self, entry): """Return a formated link to the entry""" - return _('<a href="%s" targ...
better formating for get_link in admin
py
diff --git a/test/gmpy_test_mpz.py b/test/gmpy_test_mpz.py index <HASH>..<HASH> 100644 --- a/test/gmpy_test_mpz.py +++ b/test/gmpy_test_mpz.py @@ -342,6 +342,8 @@ mpz(123) >>> z=_g.mpz('melancholy',256) >>> z mpz(573406620562849222387053L) +>>> long(z) +573406620562849222387053L >>> divmod(z,a) (mpz(46618424436004...
Fix a too-specific test on hash() which failed on <I>-bit builds of Python.
py
diff --git a/s_tui/s_tui.py b/s_tui/s_tui.py index <HASH>..<HASH> 100755 --- a/s_tui/s_tui.py +++ b/s_tui/s_tui.py @@ -704,7 +704,7 @@ class GraphController: self.script_hooks_enabled = True self.script_loader = None - self.refresh_rate = '2.0' + self.refresh_rate = args.refresh_rate ...
Add an option to command line to set refresh_rate at launch
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,19 @@ from __future__ import absolute_import +import sys from setuptools import setup +_PY2 = sys.version_info.major == 2 + # add __version__, __author__, __authoremail__, __description__ to this namespace # e...
Added python2/3 compatibility for setup
py
diff --git a/rtree/index.py b/rtree/index.py index <HASH>..<HASH> 100644 --- a/rtree/index.py +++ b/rtree/index.py @@ -291,7 +291,7 @@ class Index(object): return 0 def __repr__(self): - return f'rtree.index.Index(bounds={self.bounds}, size={self.get_size()})' + return 'rtree.index.Ind...
Remove f-strings in index `__repr__` methods
py
diff --git a/napd/nap.py b/napd/nap.py index <HASH>..<HASH> 100644 --- a/napd/nap.py +++ b/napd/nap.py @@ -342,8 +342,9 @@ class Nap: if code == '1200': raise NapValueError(text) - else: - raise NapError() + + raise NapError(str(e)) + except ...
Add "catch alls" in db _execute function We had some errors being caught and not properly handled resulting in silent errors. Part of issue #<I>
py
diff --git a/mockupdb/__init__.py b/mockupdb/__init__.py index <HASH>..<HASH> 100755 --- a/mockupdb/__init__.py +++ b/mockupdb/__init__.py @@ -1786,17 +1786,11 @@ def make_reply(*args, **kwargs): def make_op_msg_reply(*args, **kwargs): # Error we might raise. - if args and isinstance(args[0], OpMsgReply): + ...
Remove hack, client may respond with OP_REPLY to OP_MSG
py
diff --git a/dynamic_initial_data/base.py b/dynamic_initial_data/base.py index <HASH>..<HASH> 100644 --- a/dynamic_initial_data/base.py +++ b/dynamic_initial_data/base.py @@ -88,7 +88,7 @@ class InitialDataManager(object): dependencies = self.get_dependency_call_list(app) # update initial da...
* refactored slice and del access
py
diff --git a/johnny/middleware.py b/johnny/middleware.py index <HASH>..<HASH> 100755 --- a/johnny/middleware.py +++ b/johnny/middleware.py @@ -42,7 +42,6 @@ class LocalStoreClearMiddleware(object): """ def process_exception(self, *args, **kwargs): cache.local.clear() - raise def process...
Fixed bug in LocalStoreClearMiddleware.process_exception The 'process_exception' middleware method should not re-rsie exception ever!
py
diff --git a/flask_cache_buster/__init__.py b/flask_cache_buster/__init__.py index <HASH>..<HASH> 100644 --- a/flask_cache_buster/__init__.py +++ b/flask_cache_buster/__init__.py @@ -51,7 +51,9 @@ class CacheBuster: if not self.__is_file_to_be_busted(rooted_filename): continue ...
use utf-8 encoding
py
diff --git a/engineer/conf.py b/engineer/conf.py index <HASH>..<HASH> 100644 --- a/engineer/conf.py +++ b/engineer/conf.py @@ -184,6 +184,11 @@ class EngineerConfiguration(object): self.SITE_URL = config.pop('SITE_URL', 'SITE_URL') self.SITE_AUTHOR = config.pop('SITE_AUTHOR', None) self.HOME_...
Ensure HOME_URL ends with a '/'. If HOME_URL does not end in a slash, Engineer will create incorrect URLs in some cases.
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -2369,6 +2369,8 @@ def line(name, content, match=None, mode=None, location=None, ''' Line-based editing of a file. + .. versionadded:: Beryllium + Params are iden...
Add versionadded directive to file.line state
py
diff --git a/metapipe/parser.py b/metapipe/parser.py index <HASH>..<HASH> 100644 --- a/metapipe/parser.py +++ b/metapipe/parser.py @@ -1,7 +1,10 @@ """ A parser and other parser related classes. """ -from lexer import Token - +try: + from metapipe.lexer import Token # Python3 +except ImportError: + from lexer impo...
Fixes Python2/3 compatability.
py
diff --git a/test_colr.py b/test_colr.py index <HASH>..<HASH> 100755 --- a/test_colr.py +++ b/test_colr.py @@ -170,6 +170,11 @@ def rainbow_tests(): lines = ['This is a block of text made into a rainbow' for _ in range(10)] print(Colr('\n'.join(lines)).rainbow()) + # Rainbow should honor fore,back,styles...
Make sure `rainbow()` plays well with other styles.
py
diff --git a/python_prototype/fakelu.py b/python_prototype/fakelu.py index <HASH>..<HASH> 100644 --- a/python_prototype/fakelu.py +++ b/python_prototype/fakelu.py @@ -5,7 +5,13 @@ import numpy as np import scipy.linalg # Here comes the fast implementation: -from _block_diag_ilu import PyILU +try: + from _block_d...
Work around for testing before build extension module.
py
diff --git a/sos/sos_script.py b/sos/sos_script.py index <HASH>..<HASH> 100755 --- a/sos/sos_script.py +++ b/sos/sos_script.py @@ -889,9 +889,9 @@ for __n, __v in {}.items(): if opt_name == 'sigil': try: value = eval(opt_...
Allow sigil=None as section option
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,6 @@ setup_params = dict( ':python_version=="3.6"': ['jinja2'], }, description="IRC bot - full featured, yet extensible and customizable", - license='MIT', author="YouGov, Plc.", author_email="open.source@...
Rely on Trove classifiers for license
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ install_requires = [ # For more details, see: # http://packages.python.org/distribute/setuptools.html#declaring-dependencies "nltk", "enum", "lxml", "networkx", "pygraphviz", - "brewer2mpl", "u...
changed requirements from pydot to pydot2
py
diff --git a/gwpy/timeseries/timeseries.py b/gwpy/timeseries/timeseries.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/timeseries.py +++ b/gwpy/timeseries/timeseries.py @@ -1428,7 +1428,7 @@ class TimeSeries(TimeSeriesBase): :func:`scipy.signal.get_window` for details on window formats. """ ...
One minor change to a comment line
py
diff --git a/gns3server/version.py b/gns3server/version.py index <HASH>..<HASH> 100644 --- a/gns3server/version.py +++ b/gns3server/version.py @@ -23,8 +23,8 @@ # or negative for a release candidate or beta (after the base version # number has been incremented) -__version__ = "2.1.18" -__version_info__ = (2, 1, 18,...
Development on <I>dev1
py
diff --git a/taskrunner/__main__.py b/taskrunner/__main__.py index <HASH>..<HASH> 100644 --- a/taskrunner/__main__.py +++ b/taskrunner/__main__.py @@ -67,8 +67,14 @@ def main(argv=None): if args.options: options = {} + non_options = ('config_file', 'env', 'tasks_module', 'echo', 'no_echo', 'hide'...
Don't allow options via -o that mirror options like --config-file It would be confusing to allow options to be passed both via top-level script options and via -o, so we disallow that.
py
diff --git a/livy.py b/livy.py index <HASH>..<HASH> 100644 --- a/livy.py +++ b/livy.py @@ -53,7 +53,7 @@ class Livy: def read(self, dataframe_name): code = SERIALISE_DATAFRAME_TEMPLATE.format(dataframe_name) output = self._execute(code) - if output.status != 'ok': + if output.status...
Represent output state with enum
py
diff --git a/xclim/indicators/atmos/_temperature.py b/xclim/indicators/atmos/_temperature.py index <HASH>..<HASH> 100644 --- a/xclim/indicators/atmos/_temperature.py +++ b/xclim/indicators/atmos/_temperature.py @@ -618,7 +618,7 @@ tropical_nights = Tasmin( description="{freq} number of Tropical Nights : defined as...
Use suggested for call signature in tropical_nights indice
py
diff --git a/openquake/commonlib/source_model_factory.py b/openquake/commonlib/source_model_factory.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/source_model_factory.py +++ b/openquake/commonlib/source_model_factory.py @@ -222,6 +222,10 @@ class SourceModelFactory(object): spinning_off = self.oqpar...
Restored processpool [skip CI]
py
diff --git a/alerta/models/heartbeat.py b/alerta/models/heartbeat.py index <HASH>..<HASH> 100644 --- a/alerta/models/heartbeat.py +++ b/alerta/models/heartbeat.py @@ -28,7 +28,7 @@ class Heartbeat(object): @property def latency(self): - return (self.receive_time - self.create_time).microseconds / 100...
Use total ms to calculate heartbeat latency (#<I>)
py
diff --git a/visidata/aggregators.py b/visidata/aggregators.py index <HASH>..<HASH> 100644 --- a/visidata/aggregators.py +++ b/visidata/aggregators.py @@ -47,7 +47,7 @@ def aggregator(name, func, *args, type=None): return None return e - aggregators[name] = _defaggr(name, type, _func)...
[aggregators] make aggregators value always a list
py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index <HASH>..<HASH> 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8950,8 +8950,8 @@ NaN 12.3 33.0 ostrich bird 2 NaN By default, missing values are not considered, and the mode of wings - are both 0 an...
DOC: improve description of the example which dataframe has two rows (#<I>) * fix issue <I> improve description of the examplewhich dataframe has two rows * improve description of example improve description of the example which dataframe has two rows * improve description of the example describing mode op...
py
diff --git a/ipython_helpers/notebook.py b/ipython_helpers/notebook.py index <HASH>..<HASH> 100644 --- a/ipython_helpers/notebook.py +++ b/ipython_helpers/notebook.py @@ -64,9 +64,9 @@ class Session(object): # Determine which port the notebook is running on. cre_address = re.compile(r'The IPython Note...
Handle Windows line endings in regular expressions
py
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -10,7 +10,7 @@ from unittest import mock import pytest -import pkg_resources +from setuptools._importlib import metadata from setupt...
Update test_sdist not to rely on pkg_resources.
py
diff --git a/quark/ipam.py b/quark/ipam.py index <HASH>..<HASH> 100644 --- a/quark/ipam.py +++ b/quark/ipam.py @@ -125,7 +125,7 @@ class QuarkIpam(object): address["address_readable"] = str(first_address) address["subnet_id"] = subnet["id"] - address["version"] = subnet["versi...
Quick fix with subnet ip_version and alloc
py
diff --git a/bmds/models/base.py b/bmds/models/base.py index <HASH>..<HASH> 100644 --- a/bmds/models/base.py +++ b/bmds/models/base.py @@ -30,8 +30,9 @@ class BMDModel(object): if os.path.exists(outfile): self.output_created = True self.tempfns.append(outfile) - ...
parse results and save outfile to object
py
diff --git a/cerberus/validator.py b/cerberus/validator.py index <HASH>..<HASH> 100644 --- a/cerberus/validator.py +++ b/cerberus/validator.py @@ -655,6 +655,10 @@ class Validator(object): purge_unknown=schema[field].get('purge_unknown', self.purge_unknown)) # noqa mapping[field] = validator.norm...
Ensures container types are preserved in normalization
py
diff --git a/visidata/shell.py b/visidata/shell.py index <HASH>..<HASH> 100644 --- a/visidata/shell.py +++ b/visidata/shell.py @@ -142,7 +142,7 @@ class DirSheet(Sheet): def undoMod(self, row): for col in self.visibleCols: - if col._modifiedValues and id(row) in col._modifiedValues: + ...
[DirSheet] fix z^R and undoMod
py
diff --git a/aliyun/log/logclient.py b/aliyun/log/logclient.py index <HASH>..<HASH> 100755 --- a/aliyun/log/logclient.py +++ b/aliyun/log/logclient.py @@ -643,7 +643,7 @@ class LogClient(object): :return: GetContextLogsResponse """ ret = None - for _c in range(DEFAULT_QUERY_RETRY_CO...
to #<I> change range to xrange for get_context_logs
py
diff --git a/src/feat/test/test_agencies_emu_contracts.py b/src/feat/test/test_agencies_emu_contracts.py index <HASH>..<HASH> 100644 --- a/src/feat/test/test_agencies_emu_contracts.py +++ b/src/feat/test/test_agencies_emu_contracts.py @@ -202,6 +202,7 @@ class TestManager(common.TestCase, common.AgencyTestHelper): ...
Increase timescale of ocasionally failing test
py
diff --git a/phy/scripts/phy_script.py b/phy/scripts/phy_script.py index <HASH>..<HASH> 100644 --- a/phy/scripts/phy_script.py +++ b/phy/scripts/phy_script.py @@ -363,6 +363,8 @@ def main(args=None): elif isinstance(args, string_types): args = args.split(' ') args = p.parse(args) + if args is None...
Fixed bug in script with None args.
py
diff --git a/pyocd/target/pack/cmsis_pack.py b/pyocd/target/pack/cmsis_pack.py index <HASH>..<HASH> 100644 --- a/pyocd/target/pack/cmsis_pack.py +++ b/pyocd/target/pack/cmsis_pack.py @@ -320,6 +320,7 @@ class CmsisPackDevice(object): 'name': name, 'start': start, ...
CmsisPackDevice sets access permissions on memory regions it creates.
py
diff --git a/nanocomp/NanoComp.py b/nanocomp/NanoComp.py index <HASH>..<HASH> 100644 --- a/nanocomp/NanoComp.py +++ b/nanocomp/NanoComp.py @@ -174,10 +174,10 @@ def validate_split_runs_file(split_runs_file): if content[0].upper().split('\t') == ['NAME', 'RUN_ID']: return {c.split('\t')[1]: c.split...
fixed undefined name sysexit
py
diff --git a/spyder/config/manager.py b/spyder/config/manager.py index <HASH>..<HASH> 100644 --- a/spyder/config/manager.py +++ b/spyder/config/manager.py @@ -641,9 +641,16 @@ class ConfigurationManager(object): try: CONF = ConfigurationManager() except Exception: - from qtpy.QtWidgets import QMessageBox ...
Config: Don't use create_application when showing message about not being able to load CONF
py
diff --git a/raiden/tests/unit/test_transport.py b/raiden/tests/unit/test_transport.py index <HASH>..<HASH> 100644 --- a/raiden/tests/unit/test_transport.py +++ b/raiden/tests/unit/test_transport.py @@ -59,7 +59,7 @@ def test_throttle_policy_ping(monkeypatch, raiden_network): # additional time for the Ack, let's a...
Increase tolerance Increasing the tolerance because of a Travis fail, it took ~<I>s: > assert <I> < <I>
py
diff --git a/polyaxon/signals/experiments.py b/polyaxon/signals/experiments.py index <HASH>..<HASH> 100644 --- a/polyaxon/signals/experiments.py +++ b/polyaxon/signals/experiments.py @@ -63,9 +63,10 @@ def experiment_post_save(sender, **kwargs): instance = kwargs['instance'] instance.set_status(ExperimentLife...
Only delete outputs and logs if experiment is independent
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -1805,9 +1805,9 @@ class ClearFuncs(object): 'user': token['name']} try: self.event.fire_event(data, tagify([jid, 'new'], 'wheel')) - re...
Fix 'success' value for wheel commands The ClearFuncs was assuming a 'success' of True <I>% of the time for wheel functions. This causes wheel funcs executed via salt-api (and probably elsewhere) to incorrectly report the 'success' field when the wheel function triggers a traceback (such as when required positional ar...
py
diff --git a/src/unity/python/turicreate/test/test_json.py b/src/unity/python/turicreate/test/test_json.py index <HASH>..<HASH> 100644 --- a/src/unity/python/turicreate/test/test_json.py +++ b/src/unity/python/turicreate/test/test_json.py @@ -276,7 +276,7 @@ class JSONTest(unittest.TestCase): } ] """ - wi...
Fix test_json failure in Python 3 (#<I>) Make sure we open a NamedTemporaryFile in a way that allows writing strings (not just bytes). In Python 3, string literals are unicode.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -76,7 +76,7 @@ else: # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html - install_...
Allowing a range for matplotlib
py
diff --git a/isochrones/starmodel.py b/isochrones/starmodel.py index <HASH>..<HASH> 100644 --- a/isochrones/starmodel.py +++ b/isochrones/starmodel.py @@ -6,15 +6,11 @@ import json from configobj import ConfigObj -on_rtd = False +on_rtd = os.environ.get('READTHEDOCS') == 'True' -try: - import numpy as np -exc...
trying to get docs to build on rtd
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 setup setup( name='django-changuito', - version='1.0', + version='1.1', description='A fork of django-cart with the same simplicity but updated', maintainer='Angel Ve...
Bump release to <I>
py
diff --git a/python/ray/tune/suggest/__init__.py b/python/ray/tune/suggest/__init__.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/suggest/__init__.py +++ b/python/ray/tune/suggest/__init__.py @@ -8,8 +8,6 @@ from ray.tune.suggest.repeater import Repeater def create_searcher( search_alg, - metr...
[tune] Remove metric and mode kwargs from create_searcher (#<I>)
py
diff --git a/salt/utils/thin.py b/salt/utils/thin.py index <HASH>..<HASH> 100644 --- a/salt/utils/thin.py +++ b/salt/utils/thin.py @@ -108,6 +108,21 @@ def _add_dependency(container, obj): container.append(obj.__file__.replace('.pyc', '.py')) +def gte(): + ''' + This function is called externally fro...
Add external shell-callable function to collect tops
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ readme = open('README.rst').read() setup(name="jicbioimage.illustrate", packages=["jicbioimage", "jicbioimage.illustrate"], + package_data={"jicbioimage.illustrate": ["fonts/*"]}, version=v...
Updated setup.py file to include font files as package data.
py
diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py index <HASH>..<HASH> 100644 --- a/flask_socketio/__init__.py +++ b/flask_socketio/__init__.py @@ -605,10 +605,6 @@ class SocketIO(object): return err_handler(value) return ret - def _copy_session(self, src, dest): - ...
remove unused code related to previous commit
py
diff --git a/cirq/devices/grid_qubit.py b/cirq/devices/grid_qubit.py index <HASH>..<HASH> 100644 --- a/cirq/devices/grid_qubit.py +++ b/cirq/devices/grid_qubit.py @@ -19,7 +19,7 @@ from cirq.ops import QubitId class GridQubit(QubitId): - """A qubit at a location on a chip. + """A qubit on a 2d square lattice...
fix doc (#<I>)
py
diff --git a/category_encoders/tests/test_leave_one_out.py b/category_encoders/tests/test_leave_one_out.py index <HASH>..<HASH> 100644 --- a/category_encoders/tests/test_leave_one_out.py +++ b/category_encoders/tests/test_leave_one_out.py @@ -103,7 +103,7 @@ class TestLeaveOneOutEncoder(TestCase): ce_leave.fit...
Make leave one out test a decimal for python2
py